implement I18N switch feature