change locales switch and add locale cookies