underser / module-translation-helper
N/A
v0.2.3
2019-10-21 13:35 UTC
Requires
- php: ~7.1.3||~7.2.0||~7.3.0
- magento/framework: ~102.0.0||~101.0.0
- magento/magento2-base: ~2.3.0||~2.2.0
Requires (Dev)
- magento/magento-coding-standard: ^4.0
- phpunit/phpunit: ~6.5.0
This package is auto-updated.
Last update: 2024-09-22 00:13:12 UTC
README
Underser_TranslationHelper Magento 2 模块
此模块允许您抓取翻译文件,并具有排除已翻译文件的能力。
要求
Magento 2 平台
在 Magento v2.3.3 和 v2.2.10 上进行了测试(您至少需要 v2.2)
如何安装
运行
composer require underser/module-translation-helper
./bin/magento setup:upgrade
如何使用
此模块将为您提供 i18n:translation-helper 命令,运行
./bin/magento i18n:translation-helper --help
以查看可能的参数及其含义
使用示例
./bin/magento i18n:translation-helper --locale fr_FR --output ./var/fr_FR.csv --all
将扫描整个 magento 目录,并在 var 文件夹中创建 fr_FR.csv 文件。此文件将包含所有未翻译的 fr_FR 区域短语
./bin/magento i18n:translation-helper --locale fr_FR --output ./var/fr_FR.csv ./app/code/Vendor/Module
仅扫描 app/code/Vendor/Module,并在 var 文件夹中创建 fr_FR.csv 文件。此文件将包含所有未翻译的 fr_FR 区域短语
许可证
MIT © 2019 Roman Sliusar