eslint-plugin-i18n | ESLint rules for internationalization | Code Analyzer library
kandi X-RAY | eslint-plugin-i18n Summary
kandi X-RAY | eslint-plugin-i18n Summary
[NPM License][npm-license-image]][npm-license-url] [NPM Version][npm-version-image]][npm-version-url] [NPM Downloads][npm-downloads-image]][npm-downloads-url] [Build Status][travis-image]][travis-url] [Coverage Status][codecov-image]][codecov-url]. [npm-license-image]: [npm-license-url]: [npm-version-image]: [npm-version-url]: [npm-downloads-image]: [npm-downloads-url]: [travis-image]: [travis-url]: [codecov-image]: [codecov-url]:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of eslint-plugin-i18n
eslint-plugin-i18n Key Features
eslint-plugin-i18n Examples and Code Snippets
Community Discussions
Trending Discussions on eslint-plugin-i18n
QUESTION
My project is using i18next and react-i18next with success so far. No localize or server side involved.
Current setup:
- default & fallback language: en
- additional language: fr
I wanted to automate some things related to error checking:
1. Check that all key are translated in each defined language file
2. Either warn in dev env or lint for the ci/cd.
I've tried doing 1. with the following option:
...ANSWER
Answered 2020-Mar-20 at 14:39You can use https://github.com/godaddy/eslint-plugin-i18n-json#i18n-jsonidentical-keys. Here's how:
Add this inside your eslintrc:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install eslint-plugin-i18n
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page