Esperanto for FormatJS
This adds Esperanto locale to the FormatJS Intl
polyfill.
The polyfill already includes Esperanto locales but they're pulled from Unicode's CLDR repository, which isn't fully translated and therefore includes some dummy values.
Intl.PluralRules
Intl.RelativeTimeFormat
Intl.ListFormat
Usage
Simply import the corresponding file from dist
folder as follows:
// For example, locale for Intl.RelativeTimeFormat
import '@kotwys/formatjs-esperanto/dist/relativetimeformat.js';
Building
This project uses yarn so you need to install it first.
Then execute the following:
git clone https://github.com/kotwys/formatjs-esperanto.git
cd formatjs-esperanto
yarn
yarn build
The locales will appear in the dist/
folder.