This small library allows to generate TypeScript definition file from multiple yaml translation files.
yarn add -D i18n-typedef
yarn run i18n-typedef generate <directories...> -o <outputDirectory>
yarn run i18n-typedef watch <directories...> -o <outputDirectory>
const i18nDirectories = [];
const outputDirectory = __dirname;
new I18nYamlDefinitions(i18nDirectories, outputDirectory).generateDefinitions()
PRs and issues are welcome.