Tools for working with FontoXML localization bundles.
Last updated a year ago by bwrrp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fontoxml-localization-tools 
SYNC missed versions from official npm registry.

fontoxml-localization-tools Build Status devDependency Status devDependency Status NPM version Greenkeeper badge

Tools for working with FontoXML localization bundles.


npm i -g fontoxml-localization-tools


fontoxml-localization-tool help

prints this message

fontoxml-localization-tool extract [path [path...]]

extract message bundle template from package(s) at the given path(s)

fontoxml-localization-tool merge [path [path...]]

merge message bundles

fontoxml-localization-tool update [--overwrite] <bundlePath> <templatePath>

update message bundle with new template, overwriting the source if --overwrite is passed

Message bundles

Message bundles are JSON files, containing an array of Message objects. Each Message contains an in property with the original message, and an out property set to the localized version. Optionally, messages may contain a meta property with information about the location of the message in the source code. When merging messages with the same in value but conflicting out values, a conflicts property is created to preserve the other localizations.

Messages in the in and out properties follow the ICU MessageFormat standard. Please refer to the messageformat.js documentation for an overview of the syntax options.

Message bundles should be placed directly in the src folder of a FontoXML package. Message bundles should be named messages.${locale}.json, where ${locale} is the IETF language code for the locale the messages belong to. Make sure to use the appropriate code from the CLDR plural rules chart in order for the correct plural forms to be used for your localization.

Current Tags

  • 2.2.0                                ...           latest (a year ago)

9 Versions

  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (2)

Copyright 2014 - 2016 © |