laravel-lang / status-generator
Laravel Lang项目的翻译状态生成器
2.11.3
2024-08-06 07:39 UTC
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-09-07 14:36:27 UTC
README
安装
要获取最新版本的Laravel Lang: Status Generator库,只需使用Composer引入项目。
composer require laravel-lang/status-generator --dev
使用
创建新区域
vendor/bin/lang create --locale=<locale>
要创建缺失的区域,请在命令中不输入任何参数。
vendor/bin/lang create
下载
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
您也可以指定--only-copy
选项来禁用键查找。在这种情况下,机制将从--path
参数传入的路径中复制找到的文件。文件中的翻译将不会被搜索。
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
翻译状态
vendor/bin/lang status
实际化键
vendor/bin/lang sync
使用Google Translate翻译键
支持的语言: cloud.google.com/translate/docs/languages
vendor/bin/lang translate
从先前结构升级
vendor/bin/lang upgrade