@simosol/i18next-utils
v1.0.1
Published
Creates Typescript class with constants from i18next JSON file
Downloads
3
Keywords
Readme
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.