jshmrtn / vue3-gettext

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

Read languages from LINGUAS file #30

Closed georgkrause closed 1 year ago

georgkrause commented 1 year ago

Currently when running vue-gettext-extract or vue-gettext-compile only languages specified in gettext.config.js are processed. It would be nice if I could configure to read the LINGUAS file and process all languages specified in there.

lzurbriggen commented 1 year ago

@georgkrause I don't really like to potentially have multiple configuration sources and then have to think about config priority or diverging lists. I honestly don't really see the point but if you really really want this and implement it in a PR I would consider merging it.

georgkrause commented 1 year ago

@lzurbriggen Sorry for the late reply! I tend to agree, several locations are usually source of confusion. But in this case we are able to write out the languages to a LINGUAS file, which can be read by translation tools. Those are also able to write into LINGUAS in case a new translation was added. Currently there is no way in vue3-gettext to update the translations based on those additions, which feels like a feature gap. Does it change your mind?