locale switcher working need to change logic