Skip to content

Typescript i18next integration. take type check to t(i18nKey) function into your code

Notifications You must be signed in to change notification settings

IronLu233/i18next-translation-dts

Repository files navigation

i18next-translation-dts

A i18next translation key type definition generator.

install

npm i i18next-translation-dts
# or use yarn
yarn add i18next-translation-dts

Usage

CLI

i18next-dts "**/translation/*.json"
# watch mode
i18next-dts "**/translation/*.json" --watch

API(TBD)

import { getI18nextDefinition, generateI18nextDefinitionFile } from 'i18next-translation-dts'
getI18nextDefinition()

generateI18nextDefinitionFile()

About

Typescript i18next integration. take type check to t(i18nKey) function into your code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published