eslint-plugin-translations
Eslint plugin to deal with boring translations/locales.
Installation
Install ESLint either locally or globally.
$ npm install eslint-plugin-translations
Configuration
Add plugins
and rules
section in your eslint configuration:
Plugins
exists
will search for all "translate" calls and see if the first argument (normally your locale) has been defined in your locale files.
en.json
de.js
moduleexports = HELLO: 'Hallo'
file1.js
const myAwesomei18n = myAwesomei18n
This will show that GOOD_BYE {{name}}
is not defined in your locales files.