Skip to content
ICU MessageFormat for Javascript - i18n Plural and Gender Capable Messages
TypeScript JavaScript HTML Shell
Branch: master
Clone or download

Latest commit

eemeli Merge pull request #283 from messageformat/typescript
Refactor compiler & runtime as TypeScript
Latest commit a630cf3 May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs: Update version on website to 3.0.0-beta.2 Apr 12, 2020
example chore: Update & apply Prettier v2 styling Apr 12, 2020
packages fix(ts): Drop dependency from runtime on messageformat Apr 15, 2020
scripts feat(scripts): Add a start script, for ease of development Feb 24, 2019
test chore: Clean up ESLint config Apr 15, 2020
.eslintignore test: Update browsers tests to work again at least in Chrome Apr 13, 2020
.eslintrc.yaml chore: Clean up ESLint config Apr 15, 2020
.gitignore test: Update browsers tests to work again at least in Chrome Apr 13, 2020
.prettierignore test: Update browsers tests to work again at least in Chrome Apr 13, 2020
.travis.yml ci: Build before testing browsers Apr 15, 2020
CONTRIBUTING.md docs: Update website links to refer to v3 docs Apr 12, 2020
LICENSE chore: Harmonise copyrights to "OpenJS Foundation and contributors" Oct 8, 2019
README.md docs: Update website links to refer to v3 docs Apr 12, 2020
babel.config.js test: Fix tests for Node.js 10, skipping some Apr 15, 2020
commitlint.config.js fix: Allow single-word commit message subjects May 2, 2019
jest.config.js test(parser): Port tests to Jest Apr 13, 2020
lerna.json fix(release): Add version command config to lerna.json May 2, 2019
package-lock.json
package.json test: Update browsers tests to work again at least in Chrome Apr 13, 2020
tsconfig.json feat(messageformat): Switch build from Babel to TypeScript Apr 12, 2020

README.md

Build Status

messageformat

The experience and subtlety of your program's text can be important. Messageformat is a mechanism for handling both pluralization and gender in your applications. It can also lead to much better translations, as it's designed to support all the languages included in the Unicode CLDR.

This monorepo consists of the following packages that make up our JS implementation of ICU MessageFormat:

Getting Started

npm install --save-dev messageformat@next
npm install --save messageformat-runtime

This includes the MessageFormat compiler and a runtime accessor class that provides a slightly nicer API for working with larger numbers of messages. Our Format Guide will help with the ICU MessageFormat Syntax, and the Usage Guide provides some options for integrating messageformat to be a part of your workflow around UI texts and translations.


Messageformat is an OpenJS Foundation project, and we follow its Code of Conduct.

OpenJS Foundation
You can’t perform that action at this time.