1.0.0-beta.2 • Published 3 years ago

@calmdownval/intl v1.0.0-beta.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Intl

A generic intl library with ICU Message Format support.

Installation

# NPM
npm i @calmdownval/intl

# Yarn
yarn add @calmdownval/intl

The package already contains TypeScript declaration.

Motivation

The motivation for this library is to provide a simple runtime API for JavaScript apps with no additional build steps or loaders needed. The library features a fast parser for the ICU message format and a fully JSON-compatible configuration structure.

No locale presets are bundled; Instead, it is necessary to include configuration of used formatters (e.g. date/time formats) within the locale file itself.

This shrinks the size of resources to a bare minimum, which is sadly an important metric of web applications to this day.

If the above reasons aren't on your list of requirements, you'll likely be better off with a more mature set of tools like MessageFormat.

Other Useful Links