validi18n

1.0.1 • Public • Published

validi18n Build Status codecov

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

License

MIT © Rodrigo Bermudez Schettino

Package Sidebar

Install

npm i validi18n

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.25 kB

Total Files

5

Last publish

Collaborators

  • rodrigobdz