Download the PHP package vemcogroup/laravel-translation without Composer
On this page you can find all versions of the php package vemcogroup/laravel-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vemcogroup/laravel-translation
More information about vemcogroup/laravel-translation
Files in vemcogroup/laravel-translation
Package laravel-translation
Short Description Translation package for Laravel to scan for localisations and up/download to poeditor
License MIT
Homepage https://github.com/vemcogroup/laravel-translation
Informations about the package laravel-translation
Laravel Translation
Description
This package allows you to scan your app for translations and create your *.json file.
It also allows you to upload your base translation to poeditor.
Installation
You can install the package via composer:
The package will automatically register its service provider.
To publish the config file to config/translation.php
run:
This is the default contents of the configuration:
If you want to use upload / download to poeditor features, you need to create a your base_language in poeditor.
Usage
You are now able to use the translation commands scan/upload/download or create-js
Scan files
To scan your project for translations run this command:
The command creates your base_language
.json file in /resources/lang
Add terms
To only add your terms run this command:
This command doesn't remove unsused terms, so remember NOT to run upload
command afterward.
Upload translations
To upload your translation terms to poeditor run this command:
You are also able to upload your local translations if you have locale changes
Download translation languages
To download languages from poeditor run this command:
Create JS language files
To create public JS files run this command:
You are now able to access all your languages as window.i18n
from /public/lang
when you include the .js file
`
System translations
If you want to translate system translations change the terms in eg /resources/lang/en/auth.php
From:
To
Then it will be scanned and included in the synced terms.
All versions of laravel-translation with dependencies
ext-json Version *
symfony/finder Version ^4.3|^5.0|^6.0|^7.0
guzzlehttp/guzzle Version ^6.3|^7.0
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0