Skip to content
simple Javascript i18n lib
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
_readme.md
example.js
i18n.js
package.json
readme.md
yarn.lock

readme.md

min-i18n

NPM version Downloads Dependency Status

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 by navigator.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

License

You can’t perform that action at this time.