Calling setLocale a second time for the same language does not merge the given data with the existing one resulting in a partially translated page when multiple modules use i18n-calypso in the same app.
This is currently a problem in wp-calypso when user bootstrapping is disabled because notifications-panel might set the language first.
Calling
setLocale
a second time for the same language does not merge the given data with the existing one resulting in a partially translated page when multiple modules usei18n-calypso
in the same app.This is currently a problem in
wp-calypso
when user bootstrapping is disabled becausenotifications-panel
might set the language first.To reproduce, simply load a development environment of wp-calypso as a logged in user with a locale different than
en
. Either https://widgets.wp.com/languages/notifications/fr.json or https://widgets.wp.com/languages/calypso/fr.json will be ignored.