mapper_i18n is a php script that automatically generate json translation files for html files containing jquery.i18n's DATA Api.
git clone https://github.com/Dainerx/mapper_i18n
cd mapper_i18n
php mapper.php -map /path/to/html/file
Requires PHP 7.0 or newer
Map
Map multiple files to generate .json translation files.
php mapper.php -map /path/to/file1 /path/to/file2 ... /path/to/fileN
If all is good:
In case there your tags are malformed:
Merge
Merge .json translation files into one .json file.
php mapper.php -merge /path/to/file_to_merge_1.json /path/to/file_to_merge_2.json ... /path/to/file_to_merge_N.json /path/to/result_file.json