Skip to content

Commit

Permalink
🐛 bug: fix cannot react
Browse files Browse the repository at this point in the history
closes #261
  • Loading branch information
kazupon committed Jan 25, 2018
1 parent de66616 commit 2a8ea1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export default class VueI18n {
}

mergeLocaleMessage (locale: Locale, message: LocaleMessageObject): void {
this._vm.messages[locale] = Vue.util.extend(this._vm.messages[locale] || {}, message)
this._vm.$set(this._vm.messages, locale, Vue.util.extend(this._vm.messages[locale] || {}, message))
}

getDateTimeFormat (locale: Locale): DateTimeFormat {
Expand All @@ -395,7 +395,7 @@ export default class VueI18n {
}

mergeDateTimeFormat (locale: Locale, format: DateTimeFormat): void {
this._vm.dateTimeFormats[locale] = Vue.util.extend(this._vm.dateTimeFormats[locale] || {}, format)
this._vm.$set(this._vm.dateTimeFormats, locale, Vue.util.extend(this._vm.dateTimeFormats[locale] || {}, format))
}

_localizeDateTime (
Expand Down Expand Up @@ -491,7 +491,7 @@ export default class VueI18n {
}

mergeNumberFormat (locale: Locale, format: NumberFormat): void {
this._vm.numberFormats[locale] = Vue.util.extend(this._vm.numberFormats[locale] || {}, format)
this._vm.$set(this._vm.numberFormats, locale, Vue.util.extend(this._vm.numberFormats[locale] || {}, format))
}

_localizeNumber (
Expand Down

0 comments on commit 2a8ea1c

Please sign in to comment.