1.0.1 • Published 6 years ago

@simosol/i18next-utils v1.0.1

Weekly downloads
41
License
MIT
Repository
-
Last release
6 years ago

i18next-utils

Installation

npm i -D @simosol/i18next-utils --save

Basic usage

Create typescript class with constants-keys from i18next JSON file.

Step 1

Add script to your package.json

"langFile": "i18next-utils-KeyClass --source=en.json --target=src/LangKey.ts"

Change source and target to your actual file paths.

Step 2

Run script npm run langFile

It's convenient to setup file watcher in your IDE.

1.0.1

6 years ago

1.0.0

6 years ago