min-i18n
simple javascript i18n lib
Installation
npm i min-i18n
Api
-
i18n.t(string)
translate string, if no match will return it self -
i18n.locale
return locale guessed bynavigator.languages
-
i18n.sertLocale(locale)
manual set locale -
i18n.is(locale)
is the locate, return boolean -
i18n.setResource(locale, resource)
set one locale resource -
i18n.setResources(resources)
set multiply locale resources License