supportpal/language-tools
Composer 安装命令:
composer require supportpal/language-tools
包简介
A set of CLI tools to help analyse and maintain SupportPal language files.
README 文档
README
A set of CLI tools to help analyse and maintain SupportPal language files.
Usage
$ composer require --dev supportpal/language-tools
Compare Command
Compare your translation against the English translation files.
This will produce a diff for each file which differs from its English equivalent.
$ php vendor/bin/language-tools compare resources/lang/en/ resources/lang/es/
# Comparing resources/lang/en/ against resources/lang/es/
Sync Command
⚠️ Experimental ⚠️
Check the changes match what you expect.
Synchronise your translation with the English translation files.
This will add / remove translation strings, and also update the formatting of the file to match the English equivalent.
$ php vendor/bin/language-tools sync resources/lang/en/ resources/lang/es/
# Synchronising resources/lang/es/ with resources/lang/en/ ...
统计信息
- 总下载量: 6.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-29