messageformat

ICU MessageFormat for Javascript - i18n Plural and Gender Capable Messages

Github stars Tracking Chart







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.

Main metrics

Overview
Name With Ownermessageformat/messageformat
Primary LanguageTypeScript
Program languageHTML (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2012-01-25 12:56:20
Pushed At2025-05-14 17:26:23
Last Commit At
Release Count151
Last Release Namemessageformat@4.0.0-12 (Posted on 2025-05-14 20:20:27)
First Release Namev0.1.0 (Posted on 2012-02-28 05:02:14)
用户参与
Stargazers Count1.7k
Watchers Count31
Fork Count156
Commits Count1.6k
Has Issues Enabled
Issues Count220
Issue Open Count12
Pull Requests Count183
Pull Requests Open Count4
Pull Requests Close Count43
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

No more projects by this owner are included. Recommend one?