nasr/laravel-lang-translatable

Easy-to-use package To Automatically translate language directory using google translation

Installs: 117

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nasr/laravel-lang-translatable

1.0.0 2023-10-14 18:56 UTC

This package is auto-updated.

Last update: 2025-09-14 23:37:13 UTC


README

Introduction

Laravel Lang Translatable is an easy-to-use package To Automatically translate language directory using google translation api.

Installation

composer require nasr/laravel-lang-translatable

Publish the package config file using the following command:

php artisan vendor:publish --provider="LLT\LaravelLangTranslatableServiceProvider"

Basic Usage

php artisan translate:file

This will ask you in the terminal what is the file name you want to translate in your into your supported locales in laravel-lang-translatable config file

For Example: auth.php

php artisan translate:file --all

Will translate your default language directory into your supported locales in laravel-lang-translatable config file

php artisan translate:file --all --path=Modules/YourModuleName/Lang

Will translate your default language directory of your custom directory into your supported locales in laravel-lang-translatable config file