becklyn/translations-extractor
最新稳定版本:1.1.1
Composer 安装命令:
composer require becklyn/translations-extractor
包简介
Extracts translations from the given directory.
README 文档
README
CLI command, that helps extracting translations in Symfony projects.
Installation
It's best to install this command using the composer-bin-plugin:
composer bin test req becklyn/translations-extractor
Usage
Call the command using the CLI:
./vendor/bin/extract-translations src/ templates/
As arguments, pass the list of directories to search in.
Options
You can pass in extension names for twig, so that Twig doesn't complain about missing functions (or filters, etc.).
--mock-functionthe names of the functions to mock--mock-filterthe names of the filters to mock--mock-testthe names of the tests to mock
./vendor/bin/extract-translations src/ --mock-filter normalize --mock-filter normalize_another
There is a list of predefined mocks, take a look in MockExtension.
统计信息
- 总下载量: 9.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-11-25