dkfbasel / vuex-i18n

Localization plugin for vue.js 2.0 using vuex as store
MIT License
666 stars 56 forks source link

Linked local messages #118

Open karladler opened 4 years ago

karladler commented 4 years ago

Is there a feature planned for using already translated keys as part of new translations, similar to linked translations in the vue-i18n plugin?

https://kazupon.github.io/vue-i18n/guide/messages.html#linked-locale-messages

tikiatua commented 4 years ago

Hi @karladler

Thank you for your input. We are currently working on the next major version of the library and briefly considered this.

I do feel that although it seems like a very handy feature, this might quickly lead to problems when creating and particularly maintaining somewhat larger applications. Particularly as it might not be clear which other messages are affected when a translation is changed.

In addition, translations often depend on the context that they are used in and including keys in an other message might not result in a semantically correct translation.

Therefore we did not plan to include such a feature. Did you have a specific use case in mind, that I might not be aware of?