A Laravel convenience integration for the Loco translation management system
slgo99/laravel-loco-tms is a Laravel package for a laravel convenience integration for the loco translation management system.
It currently has 0 GitHub stars and 111 downloads on Packagist (latest version v1.0.4).
Install it with composer require slgo99/laravel-loco-tms.
Discover more Laravel packages by slgo99
or browse all Laravel packages to compare alternatives.
Last updated
This is an integration with the Loco Translation Management System.
composer require slgo99/laravel-loco-tms
To use the library, you'll need to set your Loco API Key for your translation project.
Set the environment variable LOCO_API_KEY.
Then you'll need to publish the configuration file.
To publish the configuration file, run:
php artisan vendor:publish --provider="Jobilla\Loco\LocoServiceProvider"
This will create a loco.php file in your config directory.
The configuration file should look like this:
return [
'api_key' => env('LOCO_API_KEY'),
'lang_path' => resource_path('lang'),
];
The lang_path is the path where the translations will be stored.
In Laravel 9+ projects, you might need to set the lang_path to base_path('lang').
To download translations from Loco, run the following command:
php artisan loco:download
This will download all translations from Loco and store them in the lang_path directory.
To upload translations to Loco, run the following command:
php artisan loco:upload
This will upload all translations from the lang_path directory to Loco.