jshmrtn / vue3-gettext

Translate Vue 3 applications with gettext.
https://jshmrtn.github.io/vue3-gettext/
MIT License
70 stars 24 forks source link

Allow to use an Ecmascript module as config in addition to CommonJS module file. #52

Closed cpontvieux-systra closed 10 months ago

cpontvieux-systra commented 10 months ago

gettext.config.mjs is now possible in addition to gettext.config.js or gettext.config.cjs.

This allows to import other Ecmascript modules for gettext dynamic configuration for instance.

lzurbriggen commented 10 months ago

@cpontvieux-systra thank you! just released 3.0.0-beta.3 with your changes.

cpontvieux-systra commented 10 months ago

Sorry my bad @lzurbriggen , it’s not fully working until upgrading CosmiConfig to version 8.2 at least, and 9.0 to have correct errors: "cosmiconfig": "^9.0.0"

I’ve manually resolved it in my package.json and it’s working ok.