lang-lexem-checker
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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 from command 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.

Readme

Keywords

none

Package Sidebar

Install

npm i lang-lexem-checker

Weekly Downloads

9

Version

1.0.2

License

MIT

Unpacked Size

15.5 kB

Total Files

17

Last publish

Collaborators

  • yohanson555