i18n-node
i18n-node copied to clipboard
yml parser TypeScript and locale issues
I'm very interested in keeping the resource files in YAML rather than JSON format - thanks for that recent addition.
Unfortunately, I was unable to convert due to a couple of issues.
- the TypeScript support is out of date (release 0.13 and not 0.15) and does not include the
parserdirective, so I cannot use with TypeScript projects (withoutanycasts or lots of hacks) - It no longer picks the right locale resource file. I am able to easily set locale (in __ options) with the JSON version and all works correctly. When then only changes I make are to set parser to YAML and convert the resource files to .yml, it correctly gets the right string and does substitutions, but only from the primary (en) file, ignoring the locale setting.