Cldr Engine

Internationalization and localization in Typescript with Unicode CLDR, batteries included
Alternatives To Cldr Engine
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Icu4x1,04417262 days ago22May 10, 2022388otherRust
Solving i18n for client-side and resource-constrained environments.
Punic145100162 months ago33October 19, 20227otherPHP
PHP translation and localization made easy!
Locale26526162 years ago20August 09, 20186mitJavaScript
💪 Try as hard as possible to detect the client's language tag ("locale") in node or the browser. Browserify and Webpack friendly!
Relative Time Format625487 months ago21May 24, 2022mitJavaScript
A convenient `Intl.RelativeTimeFormat` polyfill
Cldr Engine39172 months ago170April 18, 20221apache-2.0TypeScript
Internationalization and localization in Typescript with Unicode CLDR, batteries included
Ipapalette37
2 years ago3mitHTML
Palette-class IPA Unicode Input Method for Mac OS
Uwc32
a year agompl-2.0Rust
Like wc, but unicode-aware, and with per-line mode.
Fluent Langneg Rs26
2 years ago2apache-2.0Rust
Library for language and locale identifier negotiation.
Wp Cldr22
7 months ago9gpl-2.0PHP
Use CLDR localization data in WordPress
Awesome I18n16
5 months agounlicense
A curated list of awesome i18n/l10n resources
Alternatives To Cldr Engine
Select To Compare


Alternative Project Comparisons
Readme

cldr-engine

Internationalization in Typescript with Unicode CLDR, batteries included.

build codecov 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

  • Bug fixes
  • Backwards-compatible
  • Resource pack compatibility maintained (packs from 1.0.0 are guaranteed to work for all 1.0.* versions)

MINOR

  • New features
  • Backwards-compatible
  • Internal schema breaking changes (applications must load resource packs from the same major.minor version)
  • CLDR data upgrades which maintain backwards-compatibility

MAJOR

  • Public API breaking changes
  • CLDR data upgrades which change break API compatibility (unit deprecation / renaming, etc)

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

  • Support a broad set of CLDR features in the browser "out of the box".
  • Support all scripts and regions for a language in a single compact resource pack.
  • Resolve the CLDR data size and dimensionality problems.
    • In the case of English: ~40MB of JSON for 105 locales is compressed to a 194KB resource pack (44KB gzip), a factor of approx. 200:1 uncompressed, 1000:1 with gzip compression.
  • No additional library dependencies required.
  • No custom extraction of CLDR data or precompilation of formatters required.
  • Correctness and consistency across browsers, Node.js, and other Javascript ES5 runtime environments.
  • Provide type-safety, reducing programming errors.
  • No familiarity with CLDR structure is required for developers to use this library.
  • High performance.
  • Arbitrary precision decimal math, to achieve the same accuracy in the browser as on the server.

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.

Popular Unicode Projects
Popular Localization Projects
Popular Text Processing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Typescript
Language
Date
Mathematics
Formatter
Localization
I18n
Unicode
Internationalization
Timezone
Arbitrary Precision