Skip to content

Commit

Permalink
🐛 bug(pluralization): inherit pluralization rules ⚠ (#493) by @Raiondesu
Browse files Browse the repository at this point in the history


Allows pluralization rules to be propagated to children and extended vue components (was only root before).

**Important**: before this fix, child components didn't have any pluralization rules whatsoever. This made custom pluralization only usable on root i18n instances or via $root.$i18n.
  • Loading branch information
Raiondesu authored and kazupon committed Dec 25, 2018
1 parent b9437ea commit 7a23f32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default {
options.i18n.formatter = this.$root.$i18n.formatter
options.i18n.fallbackLocale = this.$root.$i18n.fallbackLocale
options.i18n.silentTranslationWarn = this.$root.$i18n.silentTranslationWarn
options.i18n.pluralizationRules = this.$root.$i18n.pluralizationRules
}

// init locale messages via custom blocks
Expand Down

0 comments on commit 7a23f32

Please sign in to comment.