Releases: javisperez/vuetranslate
Releases · javisperez/vuetranslate
v1.3.0
Text params support
There's a new .tWithParams
/ .$translate.text(text, params)
method that supports dynamics keys to be passed to the text translation method.
Thanks to @glenngijsberts for the collaboration! 🤘
v1.2.0
Add locales globally.
Now you can add a locales globally when loading the plugin with Vue.locales(locales
)
Also, there are new events emitted:
- language:init: a language is set the first time
- language:changed: a language is changed
- language:modified: a language is set, either is the first time or not
- locales:loaded: a locale is loaded
v1.1.1
Emit an event when the language is changed.
This can be listened by the component with
this.$on('translate:language', lang => {
...
});
v1.1.0
This fixes major bug when used with Laravel Elixir to make a production build (with the --production flag)
v1.0.3
Vue 1 is now supported too
v1.0.2
A bug in the example is now fixed, some pending 'translate' directive were added to the example.
v1.0.1
Added example files