laravel-lang / status-generator
Translation status generator for Laravel Lang projects
Installs: 1 306 867
Dependents: 7
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 1
Requires
- php: ^8.1
- ext-json: *
- ext-zip: *
- archtechx/enums: ^1.0
- deeplcom/deepl-php: ^1.5
- dragon-code/pretty-array: ^4.0
- dragon-code/simple-dto: ^2.3
- dragon-code/support: ^6.11
- guzzlehttp/guzzle: ^7.4
- illuminate/console: ^10.0 || ^11.0
- illuminate/container: ^10.0 || ^11.0
- laravel-lang/locale-list: ^1.2
- phpunit/phpunit: ^10.0
- stichoza/google-translate-php: ^5.1
- symfony/console: ^6.0 || ^7.0
- symfony/finder: ^6.0 || ^7.0
Requires (Dev)
- symfony/var-dumper: ^6.0 || ^7.0
Conflicts
- laravel-lang/lang: <10.0
- laravel-lang/publisher: <14.0
- dev-main
- 2.x-dev
- 2.11.3
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.1
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.0
- 1.x-dev
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.2
- v1.16.1
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.0
- v1.11.1
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.8
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-yandex-translate
This package is auto-updated.
Last update: 2024-12-07 15:22:12 UTC
README
Installation
To get the latest version of Laravel Lang: Status Generator
library, simply require the project using Composer:
composer require laravel-lang/status-generator --dev
Using
Create new locale
vendor/bin/lang create --locale=<locale>
To create missing locales, call the command without parameters:
vendor/bin/lang create
Download
vendor/bin/lang download --url=https://github.com/laravel/framework/archive/refs/heads/9.x.zip --project=framework --ver=9.x vendor/bin/lang download --url=https://github.com/laravel/framework/archive/refs/heads/8.x.zip --project=framework --ver=8.x vendor/bin/lang download --url=https://github.com/laravel/laravel/archive/refs/heads/9.x.zip --project=laravel --ver=9.x --copy=lang vendor/bin/lang download --url=https://github.com/laravel/laravel/archive/refs/heads/8.x.zip --project=laravel --ver=8.x --copy=lang --copy=resources/lang vendor/bin/lang download --url=https://github.com/laravel/jetstream/archive/refs/heads/2.x.zip --project=jetstream --ver=2.x vendor/bin/lang download --url=https://github.com/laravel/jetstream/archive/refs/heads/1.x.zip --project=jetstream --ver=1.x
You can also specify the --only-copy
option to disable key lookups.
In this case, the mechanism will copy the found files from the paths passed in the --path
parameter.
Translations within files will not be searched.
vendor/bin/lang download --url=https://github.com/laravel/laravel/archive/refs/heads/8.x.zip --project=laravel --ver=8.x --copy=lang --copy=resources/lang --only-copy
Translations status
vendor/bin/lang status
Actualize keys
vendor/bin/lang sync
Translate keys with Google Translate
Supported languages: cloud.google.com/translate/docs/languages
vendor/bin/lang translate
Upgrade from previous structure
vendor/bin/lang upgrade