# 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 Febbraio 2015, 4:49pm 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:** 1

<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:** [13 Febbraio 2015, 4:49pm UTC](https://meta.discourse.org/t/setting-default-site-settings-and-scss-based-on-locale/25217/1 "2015-02-13T16:49:55Z")

</div>

### Site settings

The default site setting may not make sense for different language. I’ll list my Chinese(zh\_CN) forum site setting to illustrate:

- `min_post_length`: 3, default: 20
- `min_topic_title_length`: 4, default: 15
- `min_search_term_length`: 1, default: 3
- `uncategorized_description`: need translation

Chinese characters can express more per word which requires to change the default site setting anyway. If not to do so, Discourse can’t even post moderator post since the character of some translation for that moderator post is less than 20. it’s also suggested by @sam.

Basically, it can be done by load separate default setting file to override based on locale settings, like `config/site_settings.<LANG>.yml`

### scss

It’s also good to set default font size and font family based on locale! `foundation/variables.<LANG>.scss` do the work, but would look horrible. And have to respect the user’s locale.

---

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