tgalopin/symfony-translations-checker
最新稳定版本:1.0.0
Composer 安装命令:
composer create-project tgalopin/symfony-translations-checker
包简介
Checks the coherence of the translations of a Symfony application across locales.
README 文档
README
Symfony Translations Checker is a small PHP tool that checks the coherence of the translations of a Symfony application across locales. It is designed to be used as a Continuous Integration tool.
It warns about issues for:
- domains that do not have the same locales as other domains
- keys that exists in the reference locale but not in another locale
- keys that exists in another locale but do not exist in the reference locale
It understands translations domains. For the moment, it only supports the YAML format.
Note: This tool isn't an official Symfony tool. I developed it for my own needs and thought it could be useful to others, thus I open-sourced it. I plan to maintain it in the long term, so feel free to use it whever you wish.
Usage
Symfony Translations Checker is a PHAR file that you can download (on the releases page) and execute, pointing it to your translations directory:
php symfony-translation-checker.phar check /path/to/your/project/translations
By default, the locale acting as reference is "en". You can change this setting by passing a reference option:
php symfony-translation-checker.phar check /path/to/your/project/translations --reference=fr
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-03