Skip to content

Multiple pluralizations, support for separate key and default values

Choose a tag to compare

@tikiatua tikiatua released this 03 Aug 09:15
· 130 commits to master since this release

This release adds two new features:

  • Multiple pluralization strings are not supported for languages that have more than one plural form. This is very much inspired from vue-gettext
  • It is now possible to keep translation keys and default values separate. This should make it easier for large projects to manage the translation keys even if the default values might change over time. Simply specify the default value after the key to use separate keys and default values $t('translation.key', 'default text for key'). Variable substitution and pluralization should still work as expected.