1.2.4 • Published 10 months ago
i18n-typedef v1.2.4
i18n-typedef
This small library allows to generate TypeScript definition file from multiple yaml translation files.
Install
yarn add -D i18n-typedef
Usage
CLI
Generate a single I18n.d.ts file:
yarn run i18n-typedef generate <directories...> -o <outputDirectory>
Watch mode:
yarn run i18n-typedef watch <directories...> -o <outputDirectory>
Within an application
const i18nDirectories = [];
const outputDirectory = __dirname;
new I18nYamlDefinitions(i18nDirectories, outputDirectory).generateDefinitions()
PRs and issues are welcome.
1.2.4
10 months ago
1.2.3
10 months ago
1.2.1
10 months ago
1.2.0
4 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.1.0-beta.2
5 years ago
1.1.0-beta.1
5 years ago
1.1.0-beta.3
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago