# Rebuild says "no such locale exists"

**URL:** <https://meta.discourse.org/t/rebuild-says-no-such-locale-exists/55824>\
**Category:** Product Support\
**Created:** [2017 年1 月 16 日 09:36 UTC](https://meta.discourse.org/t/rebuild-says-no-such-locale-exists/55824 "2017-01-16T09:36:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Glamdring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/glamdring/32/121266_2.png) [@Glamdring](https://meta.discourse.org/u/Glamdring)\
发布日期： [2017 年1 月 16 日 09:36 UTC](https://meta.discourse.org/t/rebuild-says-no-such-locale-exists/55824/1 "2017-01-16T09:36:47Z")

</div>

In case one wants to use a language that is not in the official list, but is, let’s say, at 80% at Transifex (which is my case), there is no good way to use it.

Downloading and renaming the files from transifex is tedious, but I guess it’s the same for every new language. The other issue is you have to manually copy the files to the discourse docker instance (it won’t make sense to make a PR, because it is not fully translated yet).

Then you have to switch language, rebuild assets, and it works (which isn’t documented in one place). However, there are two major issues:

- you can’t rebuild when a non-standard language is set as default. The rebuild command complains that “no such locale” exists. You have switch back to an official language and only then rebuild
- after the rebuild, the custom language is gone, so you have to again manually copy the files, rebuild assets, switch configuration.

The latter wouldn’t be such a problem, if you didn’t have to rebuild for, say, smtp server change. Now on every such configuration change you have to go through the whole process.

I think this should be somehow simplified - a few ideas: don’t require rebuild for simple configuration change; have a “custom language” folder in /var/discourse in the host machine which doesn’t have to be in git, from which the language files are picked and deployed on every rebuild; don’t fail the database dump on rebuild if “no such locale” exists

---

_[View the full topic](https://meta.discourse.org/t/rebuild-says-no-such-locale-exists/55824)._
