/mapper_i18n

A php script to automatically generate json translation files for html files containing jquery.i18n's DATA Api

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

mapper_i18n

mapper_i18n is a php script that automatically generate json translation files for html files containing jquery.i18n's DATA Api.

Quick start

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

Usage

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:

Imgur

In case there your tags are malformed:

Imgur

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

Imgur