https://github.com/davewm/ngx-translate-verify
CLI tool for verifying ngx translate translation files
https://github.com/davewm/ngx-translate-verify
angular clojurescript ngx-translate
Last synced: about 1 month ago
JSON representation
CLI tool for verifying ngx translate translation files
- Host: GitHub
- URL: https://github.com/davewm/ngx-translate-verify
- Owner: DaveWM
- License: gpl-3.0
- Created: 2017-05-31T10:31:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T10:59:16.000Z (about 9 years ago)
- Last Synced: 2025-05-24T07:39:17.182Z (about 1 year ago)
- Topics: angular, clojurescript, ngx-translate
- Language: Clojure
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ngx-translate-verify
A command line script to verify [ngx-translate](https://github.com/ngx-translate/core) translation files.
## Usage
To install, run `npm i -g ngx-translate-verify`.
`ngx-translate-verify` takes 2 required arguments:
* The filepath to a known valid file
* The filepath to the file to verify
The translation files should be `json` files, containing a single object. This object should have keys in the format "namespace/variable" (e.g. "homePage/title"), and non-blank string values. All keys in the known valid json should be in the json being verified.
## Example
`ngx-translate-verify i18n/en.json i18n/de.json`
## License
Licensed under the [GPL V3 license](https://www.gnu.org/licenses/gpl-3.0.en.html)