[API] overrideLocaleFromQuery will now also set cookie so locale is saved for next requests