ChalkBoard is an library/script which can create XML and YAML translates files from folder (html, twig, blade)
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
- Create some special class to translate only where we identify the class
- Create translates files with multiples language with api calls
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.