# SiteSetting file format update for locale override and hidden params based on Rails.env

**URL:** <https://meta.discourse.org/t/sitesetting-file-format-update-for-locale-override-and-hidden-params-based-on-rails-env/66254>\
**Category:** Development\
**Created:** [15 Julio, 2017 11:48 UTC](https://meta.discourse.org/t/sitesetting-file-format-update-for-locale-override-and-hidden-params-based-on-rails-env/66254 "2017-07-15T11:48:24Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [26 Julio, 2017 06:11 UTC](https://meta.discourse.org/t/sitesetting-file-format-update-for-locale-override-and-hidden-params-based-on-rails-env/66254/14 "2017-07-26T06:11:40Z")

</div>

Days spent for two refactors. Many new lines of spec to ensure `locale_default` is running and type is enforced for site settings. And all other specs are fixed to this point. The PR is finally ready 😉

- ✅ Refactor

- ✅ Rebased

- ✅ Spec passed

- 🏁 Peer review [https://github.com/discourse/discourse/pull/4967](https://github.com/discourse/discourse/pull/4967)

As an aside, I put `default_locale` in the `required` category now. And the client side takes the property in object is ordered implicitly that is not guaranteed by the ECMAScript. So the order of site setting panels may result in position change if such thing happened. Anyway, site setting in the client side needs a migration to the new `RestModel` in the future

---

_[View the full topic](https://meta.discourse.org/t/sitesetting-file-format-update-for-locale-override-and-hidden-params-based-on-rails-env/66254)._
