validi18n
Ensure consistent keys across i18n translations
Install
$ npm install validi18n
Usage
const validi18n = require('validi18n')
validi18n({ en: { save: 'Save' }, de: { save: 'Speichern' } })
//=> true
validi18n({ en: { save: 'Save' }, de: {} })
//console error => { en: ['save'], de: [] }
//=> false
API
validi18n(translations)
translations
Type: Object
Object with translations for each language supported.
Credits
-
deep-keys - Helper for comparison of i18n objects
-
generator-lnm - Awesome node module generator