Skip to content

HearTao/typei18n

Repository files navigation



TypeI18n

yet another i18n solution by codegen


Installtion

# npm
npm i typeI18n
# or yarn
yarn add typeI18n

Cli usage

typeI18n <directory> [options]

example:

typeI18n locales -o locales.ts

cli options

option description type default
--target, -t generate targets Enum { resource, provider } provider
--output, -o output to filepath String undefined
--watch, -w watch input files change Boolean false
--color colorful print if no output provide Boolean true
--version, -v show ts-creator versions Boolean false
--help, -h show helper Boolean false