phensley / cldr-engine

Internationalization and localization in Typescript with Unicode CLDR, batteries included
https://phensley.github.io/cldr-engine/
Apache License 2.0
48 stars 3 forks source link
arbitrary-precision cldr decimal globalize i18n internationalization language locale localization math messageformat pluralization timezone typescript unicode

cldr-engine

Internationalization in Typescript with Unicode CLDR, batteries included.

build npm version

Links

Install

Install the NPM package:

npm install --save @phensley/cldr

Using Yarn:

yarn add @phensley/cldr

Versioning

This project follows semantic versioning:

PATCH

MINOR

MAJOR

Features

Package Naming

Packages with the cldr-* prefix represent pieces of the larger library and are designed to work together. The @phensley/cldr package pulls in the full functionality of the library.

Packages without the cldr-* prefix can be used in an application individually without pulling in the larger core library.

You can use any of the packages independent of the rest of the library:

package size dependencies
@phensley/cldr-utils min+gzip
@phensley/decimal min+gzip
@phensley/language-tag min+gzip
@phensley/locale min+gzip size includes language-tag package
@phensley/locale-matcher min+gzip size includes locale and language-tag packages
@phensley/messageformat min+gzip size includes cldr-utils, decimal, and plurals packages
@phensley/plurals min+gzip size includes decimal package
@phensley/timezone min+gzip size includes cldr-utils package
@phensley/unit-converter min+gzip size includes cldr-utils and decimal packages

Goals

License

Copyright 2018-present Patrick Hensley

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Affiliation

This project is not affiliated with the Unicode Inc. or the Unicode CLDR project.