adapte LocaleSwitcherWidget to stand alone component