Fix set_locale to keep locale between brower restarts.