Skip to content

vittascience/mapper_i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages