This package has been deprecated

Author message:

WARNING: This project has been renamed to i18n-parser. Install using i18n-parser instead.

redux-i18n-parser

1.1.4 • Public • Published

redux-i18n-parser

Utility for parsing translations for react-native and react-redux-i18n.

Utility parses snippets like:

<Translation value="HERE.YOUR.TRANSLATION.TOKEN"/>

OR

I18n.t('HERE.YOUR.TRANSLATION.TOKEN')

Instalation

yarn add redux-i18n-parser

Usage

node ./node_modules/.bin/i18n-parser --config={PATH_TO_CONFIG}

Configuration

Simple config for redux-i18n-parser, i18n.json

{
  "languages": [
    "ru",
    "en"
  ],
  "sourceDir": "../src",
  "outputDir": "../src/i18n"
}

languages - List of supported languages, utility will be parse & merge with existing translations

sourceDir - Relative path to your source code

outputDir - Relative path to your translations

Etc

In package.json

// ...
"scripts": {
  // ...
  "i18n": "i18n-parser --config=./config/i18n.json"
  // ...
},
// ...

Package Sidebar

Install

npm i redux-i18n-parser

Weekly Downloads

6

Version

1.1.4

License

MIT

Last publish

Collaborators

  • intpp