1.0.4 • Published 1 year ago

i18next-utilities-ts-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

MIT Version CI

i18next-utilities-ts-cli

A CLI tool to generate TypeScript types for i18next based on your resource files. Point it to your default locale and it will generate types from .json, .yaml, or .yml files.

Usage

npx i18next-utilities-ts-cli gen -i ./path/to/locales/en-GB -o ./i18next.d.ts

Options

OptionTypeDefaultDescription
-i, --inputstringThe input directory for the default locale.
-o, --outputstringThe output file for the generated types.
-l, --default-localestringThe default locale for the resource files.
-g, --globstring[]["**/*.json","**/*.yml","**/*.yaml"]The glob pattern to match the resource files.
-n, --namespace-resolution"basename", "relativePath""basename"The resolution strategy for the namespace.
-d, --default-namespacestring"translation"The default namespace for the resource files.
1.0.4

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago