How to use the i18n-calypso.addTranslations function in i18n-calypso

To help you get started, we’ve selected a few i18n-calypso examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Automattic / wp-calypso / client / lib / i18n-utils / switch-locale.js View on Github external
		.then( translations => i18n.addTranslations( translations ) );
}
github johngodley / redirection / client / index.js View on Github external
const show = ( dom ) => {
	i18n.setLocale( { '': Redirectioni10n.locale } );
	i18n.addTranslations( Redirectioni10n.locale.translations );

	ReactDOM.render( , document.getElementById( dom ) );
};