Resource Sentry localization JSON reader.
Last updated 9 months ago by nicolassiver .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @resource-sentry/reader-localization 
SYNC missed versions from official npm registry.

Reader: Localization

Recursively walks through file-system and builds optimized SVG snippets ready to be injected in HTML. Reader complies with RFC 5646, RFC 5234 specifications.

Version Dependencies


yarn add --dev @resource-sentry/reader-localization

This reader replaces the Reader for JSON key values. When the English language is analyzed, the same keys for texts will be created as if it would be used in Reader JSON. It's required that language files have the same structure, i.e. all languages have the same set of keys.


English is considered a default language.

  • entry, path to a directory with JSON language files.
  • soft, skips language tag validation

Example: Language File

  "text": {
    "message": "Hello World"

Reader will build a vocabulary of available languages and represent them in rs.js file ready for use in production code. Maximum support available is up to:

  • 255 languages
  • 255 extended language tags
  • 63 writing system variations
  • 63 linguistic variations associated with or appropriate to a specific country, territory, or region
import Rs from './rs';

Rs.getText(Rs.Text.TEXT_MESSAGE, 'en-US'); // "Hello World"

Current Tags

  • 1.1.0                                ...           latest (9 months ago)

2 Versions

  • 1.1.0                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |