How to use the i18n-calypso.mixin 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 / wc-synchrotron / client / calypso / boot / index.js View on Github external
export default function boot() {
	let i18nLocaleStringsObject = null;

	bootDebug( 'Starting Calypso Support' );

	i18n.setLocale( window.i18nLocaleStrings );

	ReactInjection.Class.injectMixin( i18n.mixin );

	// Infer touch screen by checking if device supports touch events
	if ( touchDetect.hasTouch() ) {
		classes( document.documentElement ).add( 'touch' );
	} else {
		classes( document.documentElement ).add( 'notouch' );
	}

	// Initialize touch
	injectTapEventPlugin();
}