Esperanto locale for FormatJS
npm install @kotwys/formatjs-esperantoThis 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.
🚨 Work in Progress. The current translations include:
- Intl.PluralRules
- Intl.RelativeTimeFormat
- Intl.ListFormat
Simply import the corresponding file from dist folder as follows:
``js`
// For example, locale for Intl.RelativeTimeFormat
import '@kotwys/formatjs-esperanto/dist/relativetimeformat.js';
This project uses yarn so you need to
install it first.
Then execute the following:
`bash`
git clone https://github.com/kotwys/formatjs-esperanto.git
cd formatjs-esperanto
yarn
yarn build
The locales will appear in the dist/` folder.