0.1.0 • Published 10 years ago

i18n-translator v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

i18n-translator

Initialize i18n translator with i18n.init(i18nMap); where i18nMap is a map in the form

{
  "Original text": "Translated text",
  "Original text abc": "Translated text abc"
}

Then you can call i18.tr("Original text") to obtain the string "Translated text"