GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - messageformat/messageformat: ICU MessageFormat and Unicode Messageformat for Javascript

BranchesTags
Open more actions menu

Latest commit

 

History

1,690 Commits
1,690 Commits

Folders and files

NameName
Last commit message
Last commit date
.config
.config
 
 
.github
.github
 
 
docs
docs
 
 
mf1
mf1
 
 
mf2
mf2
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.prettierignore
.prettierignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
vitest.config.mts
vitest.config.mts
 
 

Repository files navigation

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 provides packages supporting JS implementations of both Unicode MessageFormat 2 (MF2) and ICU MessageFormat (MF1):

Unicode MessageFormat 2

  • messageformat - MF2 parser, runtime, and polyfill for Intl.MessageFormat
  • @messageformat/fluent - Compile Fluent sources into MF2 resources
  • @messageformat/icu-messageformat-1 - Compile MF1 sources into MF2 formatters
  • @messageformat/resource - Message resource file parser
  • @messageformat/xliff - (ALPHA) Convert between XLIFF 2 and MF2

ICU MessageFormat 1

  • @messageformat/cli - A command-line client for the library
  • @messageformat/convert - Converts other localization formats into ICU MessageFormat
  • @messageformat/core - The core library that transpiles MessageFormat strings into JavaScript functions
  • @messageformat/date-skeleton - Tools for working with ICU DateFormat skeletons
  • @messageformat/loader - Webpack loader for JSON, YAML, & .properties message files
  • @messageformat/number-skeleton - Tools for working with ICU NumberFormat skeletons
  • @messageformat/parser - Parses MessageFormat source strings into an AST
  • @messageformat/react - React hooks and other bindings for messages
  • @messageformat/runtime - Runtime dependencies of compiled message modules
  • rollup-plugin-messageformat - Rollup plugin for JSON, YAML, & .properties message files

Getting Started (MF1)

Depending on your situation, consult one or more of the following guides:

  • Command-line
  • Rollup
  • Webpack
  • React

Alternatively, take a look at our examples or dig into the API documentation if you're looking to do something more involved.

Our Format Guide will help with the ICU MessageFormat Syntax, and the Usage Guide provides some further 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

About

ICU MessageFormat and Unicode Messageformat for Javascript

messageformat.github.io

Topics

languagemessageformat

Resources

Readme
MIT license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.8k stars

Watchers

31 watching

Forks

162 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.