i18n-yummy
The i18n tag function
Related post. Warning the current function is different from the post one. It's now fault tolerant and it supports a better database structure.
You can use this module to bring in i18n
in your project.
- CommonJS version available as
package.json
main entry - ECMAScript 2015 version available as
package.json
module entry - Browser version available as both index.js and min.js
How to
You need to specify a default i18n.locale = 'en'
language and a valid i18n.db = {...}
database.
You can use i18n utilities to setup a database parsing your projects files.