update the locale