moved locale to local_settings.