JSPM

react-intl-universal-pseudo-converter

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 65
  • Score
    100M100P100Q72588F
  • License MIT

A utility to convert JSON locale files into pseudo-localization format.

Package Exports

  • react-intl-universal-pseudo-converter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-intl-universal-pseudo-converter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-intl-universal-pseudo-converter

This tool converts a locale source file as the ones used by react-intl-universal and outputs a new file with pseudo-localized strings. The pseudo-localization is carried out by Tryggvigy Gylfason's pseudo-lozalization library.

Installing

Prerequisites

The package requires you to define an input localization file that uses ICU message format strings with the nested JSON locale format defined by react-intl-universal.

To install it locally, run the following command:

NPM

npm i -g react-intl-universal-pseudo-converter

Yarn

yarn global add react-intl-universal-pseudo-converter 

Using the utility

The utility follows the following syntax:

Usage: react-intl-universal-pseudo-converter <command> [options]

Commands:
  react-intl-universal-pseudo-converter create  Creates a pseudo-localized file

Options:
  -f, --file      Input file                                          [required]
  -e, --encoding  File encoding                                [default: "utf8"]
  -o, --output    Output file                    [default: "pseudo.locale.json"]
  -h, --help      Show help                                            [boolean]
  -v, --version   Show version number                                  [boolean]

Examples:
  index create -f en-us.json  creates a pseudo-localized file from 'en-us.json'

Authors

  • Cesar Zapata - Initial work - Ceszare

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments