set locale according to browser option