Download the PHP package krzar/laravel-translation-generator without Composer
On this page you can find all versions of the php package krzar/laravel-translation-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download krzar/laravel-translation-generator
More information about krzar/laravel-translation-generator
Files in krzar/laravel-translation-generator
Package laravel-translation-generator
Short Description Translations generator for laravel apps.
License MIT
Informations about the package laravel-translation-generator
Laravel Translation Generator
This package allows you to:
- Generate translation files for the specified language,
- Generate new translation files for each language,
- Completing missing keys for translations
Requirements
Laravel | PHP | Package | Supported |
---|---|---|---|
From 10.x | 8.1+ | 3.x | :white_check_mark: |
6.x to 10.x | 8.0+ | 2.x | :white_check_mark: |
Installation
Usage
[!NOTE] Remember, this package supports Laravel Prompts. So you can skip commands arguments and just answer the questions.
Generate new translation
Generate new translation files for es
language.
If the file exists, it will be completed with the missing keys.
Files and keys will be copied based on the fallback locale specified in the app configuration.
You can change fallback locale.
If you have published any translations from other packages the command will ask you if you want to generate new language translations for them as well.
You can also overwrite all values if file currently exists.
All values will be copied from fallback locale by default. If you want to clear every translation value you can use clear-values option.
This will clear values only for new keys, to clear everything, combine two options.
Generate new translation file
Generate new php translation file for every language.
This will generate new php file common.php
in every language folder (except packages translations folders).
All versions of laravel-translation-generator with dependencies
illuminate/console Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
illuminate/collections Version ^10.0|^11.0
illuminate/container Version ^10.0|^11.0
laravel/prompts Version ^0.1.11
ext-json Version *