locale selector should change window.i18n object