lang-lexem-checker
v1.0.2
Published
- `npm i lang-lexem-checker` - for in project use (as a library) - `npm i lang-lexem-checker -g` - to install it globaly and use from `command line`
Downloads
37
Readme
Installation
npm i lang-lexem-checker
- for in project use (as a library)npm i lang-lexem-checker -g
- to install it globaly and use fromcommand line
Using from cmd-line
If you install lang-lexem-checker
module globaly you can run checklng
command from it.
packlng
command supports the following options:
-s
- input folder path;
-l
- path to the checked language file;
-o
- path to ouput file for collected translation data;
-r
- path to result file for absent lexems;
-p
- print result to console.
Also you can use checklng -h
command to see the full list of available options;
Example call: checklng -s "./__test/views/" -l "./__test/.lang/en-EN.json" -p -o "./__test/out.json" -r "./__test/result.json"
It will collect all i18n
lexems from all source code in input
folder (relative to the current folder) and compare existing lexems with existing language
file for presence.