粉笔板 / 粉笔板
此包最新版本(v1.0.0)没有提供许可证信息。
为项目创建翻译文件
v1.0.0
2021-06-10 08:07 UTC
Requires
- php: >=7.1
- html2text/html2text: ^4.3
Requires (Dev)
- phpunit/phpunit: ^7
README
ChalkBoard 是一个库/脚本,可以从文件夹(html,twig,blade)创建 XML 和 YAML 翻译文件。
安装
php: >=7.1
composer require chalkboard/chalkboard to install the library
用法
use Chalkboard\Charkboard; $traduction = new Chalkboard(); // path is the root folder of your project it will create the files in translates/ $traduction->createXMLandYAML($path);
php script.php
开发路线图
- 创建一些特殊的类,只在识别到的类中进行翻译
- 通过 API 调用创建具有多种语言的翻译文件
贡献
欢迎 Pull 请求。对于重大更改,请首先创建一个问题来讨论您想进行的更改。
请确保根据需要更新测试。