vue-cli-plugin-i18n
vue-cli-plugin-i18n copied to clipboard
How do I use YAML files with vue-cli-plugin-i18n?
https://kazupon.github.io/vue-i18n/guide/sfc.html#yaml-loading describes how to use YAML files with vue-cli, but I don't really understand where to write that vue-cli specific config when using vue-cli-plugin-i18n.
Had it in vue.config.js and also adapted loadLocaleMessages to load YAML instead of JSON files, added yaml-loader, but I wasn't able to see any localized strings. :(
Awhile ago I had gotten YAML locales working with vue-i18n, but my CI broke because the reports didn't parse yaml.
@kazupon I've made a PR to https://github.com/kazupon/vue-i18n-extract/pull/1 that enables i18n:report to work with yaml/yml files. Please review and let me know if there's more you need in this area.