add cookie registering on locale change