Open gekkedev opened 3 years ago
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.
.po
SyntaxError: Unexpected string
else
@openculinary/i18next-gettext-loader
To reproduce:
npx vue-i18n-extract --languageFiles (json|yaml|yml|po) --vueFiles (your|file|matcher)
po
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!
When trying to read
.po
-based language files, I run into aSyntaxError: Unexpected string
based on this call (in anelse
-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:
npx vue-i18n-extract --languageFiles (json|yaml|yml|po) --vueFiles (your|file|matcher)
(essentially addingpo
files into the Glob pattern)