MCPcopy
hub / github.com/messageformat/messageformat

github.com/messageformat/messageformat @4.1.3 sqlite

repository ↗ · DeepWiki ↗ · release 4.1.3 ↗
446 symbols 1,213 edges 62 files 21 documented · 5%
README

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

Extension points exported contracts — how you extend this code

SrcObject (Interface)
(no doc)
packages/messageformat/index.d.ts
MessageData (Interface)
(no doc)
packages/runtime/messages.d.ts
Options (Interface)
(no doc)
packages/messageformat/index.d.ts

Core symbols most depended-on inside this repo

get
called by 164
packages/runtime/src/messages.mjs
a
called by 132
docs/scripts/docstrap.lib.js
a
called by 132
docs/v3/scripts/docstrap.lib.js
compile
called by 121
packages/messageformat/src/compiler.js
token
called by 66
packages/messageformat/src/compiler.js
c
called by 49
docs/scripts/docstrap.lib.js
c
called by 49
docs/v3/scripts/docstrap.lib.js
_
called by 43
docs/scripts/docstrap.lib.js

Shape

Function 406
Method 27
Class 10
Interface 3

Languages

TypeScript100%

Modules by API surface

docs/v3/scripts/prettify/jquery.min.js65 symbols
docs/scripts/prettify/jquery.min.js65 symbols
docs/v3/scripts/docstrap.lib.js51 symbols
docs/scripts/docstrap.lib.js51 symbols
docs/v3/scripts/sunlight.js40 symbols
docs/scripts/sunlight.js40 symbols
packages/runtime/src/messages.mjs15 symbols
docs/v3/scripts/prettify/prettify.js14 symbols
docs/scripts/prettify/prettify.js14 symbols
packages/messageformat/src/compiler.js13 symbols
packages/messageformat/src/messageformat.js7 symbols
docs/v3/scripts/toc.js7 symbols

Dependencies from manifests, versioned

@babel/cli7.7.5 · 1×
@babel/core7.7.5 · 1×
@babel/plugin-proposal-class-properties7.7.4 · 1×
@babel/plugin-transform-modules-commonjs7.7.5 · 1×
@babel/preset-env7.7.6 · 1×
@commitlint/cli8.2.0 · 1×
@commitlint/config-conventional8.2.0 · 1×
@rollup/plugin-commonjs11.0.2 · 1×
@rollup/plugin-node-resolve7.1.1 · 1×
babel-eslint10.0.2 · 1×
babel-loader8.0.6 · 1×
chai4.2.0 · 1×

For agents

$ claude mcp add messageformat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact