Fix returning of the locale from settings.