Skip to content

Adapt method to add a locale

Choose a tag to compare

@tikiatua tikiatua released this 31 Aug 07:51
· 117 commits to master since this release

Previously the method $i18n.add(locale, translations) would replace all existing locale information. With this release, the method will extend existing locale information, making it possible to fill in locale translations from components separately.

Additionally there is a new method $i18n.replace(locale, translations), that will replace all existing locale information (just as $i18n.add() did before).