https://github.com/fakundo/react-i18next-types-generator
Simple CLI tool for generating types for react-i18next
https://github.com/fakundo/react-i18next-types-generator
generator react-i18next types typescript
Last synced: about 1 month ago
JSON representation
Simple CLI tool for generating types for react-i18next
- Host: GitHub
- URL: https://github.com/fakundo/react-i18next-types-generator
- Owner: fakundo
- Created: 2022-08-11T19:04:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-25T18:49:12.000Z (over 3 years ago)
- Last Synced: 2024-04-14T12:21:47.291Z (about 2 years ago)
- Topics: generator, react-i18next, types, typescript
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-i18next-types-generator
[](https://www.npmjs.com/package/react-i18next-types-generator)
Simple CLI tool for generating types for `react-i18next` just like that https://react.i18next.com/latest/typescript
## Usage
```console
npm i react-i18next-types-generator
npx react-i18next-types-generator [options]
```
```console
react-i18next-types-generator [options]
Options:
--version Show version number [boolean]
--help Show help [boolean]
-i, --input Path to the directory that contains translation JSON files
[string] [required]
-o, --output Path to the output declaration file [string] [required]
-a, --importPath Path used to create import directives for the JSON files
[string]
-w, --watch Watch directory changes [boolean] [default: false]
```