1.0.0 • Published 2 years ago
siigo.utils.fixi18n v1.0.0
Introduction
TODO: this utility was created to adjust internationalization file changes according to existing tags in the code and an external tag dictionary.
Getting Started
TODO: Download file and excute using node index.js
read 18n file
node index.js --src ../Siigo.Microfrontend.CustomUserProfiles/src --util readsourcecode
create 18n file
node index.js --src ../Siigo.Microfrontend.CustomUserProfiles/src/assets/i18n --labelFile ./workspace/labels.txt --externalDict ./workspace/externaldemo.txt --util createi18n
flags
- -u --utils: there are two option, readsourcecode to create labels list found in code, createi18n build i18n files acording to i18file exist into code
- -s --src : soucercode path
- -l --logName: name of logfile created about labels found into source code.
- -o --outputFile: name of output file of labels found into source code.
- -t --labelFile: name of file that contain the list of labels
- -e --externalDict: name of file that contain others list of labels. Use a external dictionary for labels what correspond to variables or data quered into json or database
1.0.0
2 years ago