@offirmo/internationalize

0.0.1 • Public • Published

Offirmo's internationalize

Based on yahoo i18n libs (http://formatjs.io/), but offering more:

  • integrated Intl API polyfill (taken from yahoo doc itself)
  • simpler API (keeping all features,
  • safer failover

While message resolution may fail, we try to not aggressively fail with a throw, but instead return the "best possible message":

  • never throw, always return a displayable string
  • fallback to "en" if possible
  • display a raw key to the user (in UI) rather than nothing, to ease pinpointing
  • allow passing a custom debug id to more easily identify components with broken i18n

TODO add a customizable error handler

Interesting reads:

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i @offirmo/internationalize

Weekly Downloads

1

Version

0.0.1

License

UNLICENSED

Last publish

Collaborators

  • offirmo