0.0.7 • Published 3 months ago

react-intl-typegen v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

react-intl-typegen

Generate TypeScript types for your react-intl translations.

Example

npx -y react-intl-typegen@latest ./src/assets/translations/pt-BR/translations.json ./src/assets/translations/en-US/translations.json -o b,i > src/react-intl-custom.d.ts

Then, add to your tsconfig.json

{
  // ...
  "paths": {
    // ...
    "react-intl-orig": ["../node_modules/react-intl"],
    "react-intl": ["./react-intl-custom"]
    // ...
  }
  // ...
}
0.0.7

3 months ago

0.0.6

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.1

3 months ago

0.0.0-wip001

3 months ago