messageformat

ICU MessageFormat for Javascript - i18n Plural and Gender Capable Messages

Github星跟踪图

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.

主要指标

概览
名称与所有者messageformat/messageformat
主编程语言TypeScript
编程语言HTML (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2012-01-25 12:56:20
推送于2025-05-14 17:26:23
最后一次提交
发布数151
最新版本名称messageformat@4.0.0-12 (发布于 2025-05-14 20:20:27)
第一版名称v0.1.0 (发布于 2012-02-28 05:02:14)
用户参与
星数1.7k
关注者数31
派生数156
提交数1.6k
已启用问题?
问题数220
打开的问题数12
拉请求数183
打开的拉请求数4
关闭的拉请求数43
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?