Skip to content

Commit

Permalink
Emit an event when the language is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
javisperez committed Sep 19, 2016
1 parent 79ba735 commit ae33600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vue-translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const VueTranslate = {
methods: {
setLang(val) {
this.current = val;
this.$emit('translate:language', val);
},

setLocales(locales) {
Expand Down

0 comments on commit ae33600

Please sign in to comment.