fix redundancy in localeSwitcherListener