vue-i18n-extract
vue-i18n-extract copied to clipboard
Gettext (.po file) support
When trying to read .po-based language files, I run into a SyntaxError: Unexpected string based on this call (in an else-closure):
https://github.com/pixari/vue-i18n-extract/blob/1ed4c301636c73cd0cc32e94109bc7e02d7880e6/src/create-report/language-files.ts#L33
It looks like there is no support for Gettext / .po fles has been implemented. Could this be achieved by using a loader like @openculinary/i18next-gettext-loader? Would love to see this file format supported.
To reproduce:
- create a Vue project using gettext
- install this CLI tool
- run
npx vue-i18n-extract --languageFiles (json|yaml|yml|po) --vueFiles (your|file|matcher)(essentially addingpofiles into the Glob pattern)
We're open to a PR that adds .po support, but it's outside the scope for the contributors of the project right now! Sorry!