ex: 2.5.16, master
http://jsfiddle.net/qegsr2pn/40/
just switch between the two languages
global translations should be reactive
global translations are not reactive (the translation is correctly done on "boot")
(btw the link for vuejs in the jsfiddle is broken ; the jsfiddle described in a new issue comment)
This is specification of component based localization.
See the docs
As in the example above, if the component doesn't have the locale message, it falls back to globally defined localization info. The component uses the language set in the root instance (in the above example:
locale: 'ja').
If you hope localize in the component locale, you can realize withsync: falseand locale ini18noption.
If it is an expected behavior, then please give us a way to get reactive global translations
Ex : a new method like $tg('global.message') (which would only use global translations, and would be reactive)
You can change root locale the below:
<select v-model="$root.$i18n.locale">
interesting
so it was just a "scope" problem, thanks
Suggest adding this to the docs.
@goldengecko
You can send PR :)
anytime, welcome
Most helpful comment
You can change root locale the below:
<select v-model="$root.$i18n.locale">