0.36.0 • Published 4 years ago

@narando/lint-i18n v0.36.0

Weekly downloads
2
License
UNLICENSED
Repository
gitlab
Last release
4 years ago

@narando/lint-i18n

A script to parse language locales and find not matching translation keys. This can be used to test your locale files at your cli tool

Usage

You need to have nodejs and npm installed.

$ npm -g i @narando/lint-i18n

Commands

-V, --version          output the version number
-d, --dir [directory]  specify locales folder [./app/locales] (default: "./app/locales")
-h, --help             output usage information

Example

This example is made with the fixtures which are used at the tests.

Commandline:

$ lint-i18n --dir ./tests/fixtures/locales/notEqualLocales

Output:

Found 3 missing translation keys for language en_US:
ns2:text5
ns2:text6
ns2:text7

Commandline:

$ lint-i18n --dir ./tests/fixtures/locales/equalLocales

Output:

Yeahy! No keys are missing!
0.36.0

4 years ago

0.35.0

5 years ago

0.34.1

5 years ago

0.34.0

5 years ago

0.33.0

5 years ago

0.32.0

5 years ago

0.31.0

5 years ago

0.30.0

6 years ago

0.29.0

6 years ago

0.28.5

6 years ago

0.28.4

6 years ago

0.28.2

6 years ago

0.28.0

6 years ago

0.27.0

6 years ago

0.26.1

6 years ago

0.25.0

6 years ago

0.24.1

6 years ago

0.24.0

6 years ago

0.23.0

6 years ago

0.22.2-alpha.2

6 years ago

0.22.2-alpha.1

6 years ago

0.22.2-alpha.0

6 years ago

0.22.1

7 years ago

0.22.0

7 years ago

0.21.1

7 years ago