Download the PHP package slgo99/laravel-loco-tms without Composer
On this page you can find all versions of the php package slgo99/laravel-loco-tms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slgo99/laravel-loco-tms
More information about slgo99/laravel-loco-tms
Files in slgo99/laravel-loco-tms
Package laravel-loco-tms
Short Description A Laravel convenience integration for the Loco translation management system
License MIT
Informations about the package laravel-loco-tms
Laravel Loco TMS
This is an integration with the Loco Translation Management System.
Installation
Configuration
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:
This will create a loco.php file in your config directory.
The configuration file should look like this:
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').
Usage
Importing translations
To download translations from Loco, run the following command:
This will download all translations from Loco and store them in the lang_path directory.
Exporting translations
To upload translations to Loco, run the following command:
This will upload all translations from the lang_path directory to Loco.
All versions of laravel-loco-tms with dependencies
illuminate/console Version >=6.0
illuminate/filesystem Version >=6.0
illuminate/support Version >=6.0
illuminate/translation Version >=6.0
loco/loco Version >=1.0