ngx-translate-lint
Simple tools for check ngx-translate keys in Angular applications in whole app which use regexp.
for react-intl use react-intl-lint for react-i18next use react-i18next-lint for desktop use ngx-translate-editor for all popular libraries use translate-lint On future current package will be merged with translate-lint
Table of Contents
- Background
- Installation
- Usage
- CLI
- TypeScript
- Contribute
- Used By
- License
Background
There are a lot of translation [ngx-translate][ngx-translate] keys in the whole app. This repository contains a proposal to check all translation keys in the whole app which should exist in all languages files.
Installation
NPM
npm install ngx-translate-lint -gGitHub
The source code are available for download at [GitHub Releases][github-release-url] and [GitHub pages][github-pages-url] as well.
Usage
CLI
Usage: ngx-translate-lint [options]
Simple CLI tools for check `ngx-translate` keys in app
Options:
-p, --project [glob]
The path to project folder
Possible Values: <relative path|absolute path>
-l, --languages [glob]
The path to languages folder--kv, --keysOnViews [enum] Described how to handle the error of missing keys on view Possible Values: <disable|warning|error
--zk, --zombieKeys [enum] Described how to handle the error of zombies keys. Zombie keys are keys that doesn't exist on any languages file but exist on project, or exist languages but doesn't exist on project Possible Values: <disable|warning|error