1.2.0 • Published 3 years ago

i18n-typedef v1.2.0

Weekly downloads
16
License
Apache-2.0
Repository
-
Last release
3 years ago

i18n-typedef

This small library allows to generate TypeScript definition file from multiple yaml translation files.

Tests NPM Package

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.0

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.0-beta.2

4 years ago

1.1.0-beta.1

4 years ago

1.1.0-beta.3

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago