# Setting default site settings and scss based on locale

**URL:** <https://meta.discourse.org/t/setting-default-site-settings-and-scss-based-on-locale/25217>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [13.Февраль.2015 16:49:54 UTC](https://meta.discourse.org/t/setting-default-site-settings-and-scss-based-on-locale/25217 "2015-02-13T16:49:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
**Post date:** [27.Апрель.2015 08:24:57 UTC](https://meta.discourse.org/t/setting-default-site-settings-and-scss-based-on-locale/25217/3 "2015-04-27T08:24:57Z")

</div>

Though your guys are busy these days @sam @riking, but I am confused by approach. Can you just go through the code and give me some advice to help me move on? Should roughly take your 5 minutes.

[https://github.com/discourse/discourse/pull/3326/files](https://github.com/discourse/discourse/pull/3326/files)

- Separate files for override site setting. `self.override_default_settings` tries to load the default values.
- `self.refresh_defaults!` is used to load the overrided the settings.
  - first load the defaults and `refresh!` to get the `default_locale`.
  - load the overrides and `refresh!` to refresh current and containers.

- when `default_locale` changed, reload the site setting to get the right default values.

My question is:

- better to put overrides in one file or merge into `site_settings.yml`?
- `refresh!` twice is weird, but how can I get the right

---

_[View the full topic](https://meta.discourse.org/t/setting-default-site-settings-and-scss-based-on-locale/25217)._
