# 区域设置和 UI 语言

**URL:** https://meta.discourse.org/t/locale-and-ui-language/167444
**Category:** Translations
**Created:** [2020年十月17日 14:55 UTC](https://meta.discourse.org/t/locale-and-ui-language/167444 "2020-10-17T14:55:42Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2020年十二月4日 17:09 UTC](https://meta.discourse.org/t/locale-and-ui-language/167444/3 "2020-12-04T17:09:39Z")

</div>

目前暂无计划将现有的语言环境系统拆分为语言环境和用户界面语言，但我同意，这样做会是一个很好的改进。

不过，我认为现有系统已经可用于创建特定区域的语言环境。我们已有 [client.en\_US.yml](https://github.com/discourse/discourse/blob/master/config/locales/client.en_US.yml) 和 [server.en\_US.yml](https://github.com/discourse/discourse/blob/master/config/locales/server.en_US.yml)，它们用于覆盖日期/时间格式、数字格式等。

我相信对阿拉伯语也可以实现类似的做法，甚至可以通过插件来完成。

> [@Add a new locale from plugin](https://meta.discourse.org/t/add-a-new-locale-from-plugin/78962):
>
> Usually the best way to add a new language to Discourse is by creating a pull request as described in “[How to add a new language](https://meta.discourse.org/t/how-to-add-a-new-language/14970)”. The following guide is for you, if you want to use a language that can’t be added to core right now. Adding a locale that extends an existing locale Let’s say you want to add a Spanish locale for Mexico (es\_MX). Discourse already ships a Spanish locale (es), so this is quite easy. Your plugin’s directory structure should look like this: custom-locales ├── assets…

---

_[View the full topic](https://meta.discourse.org/t/locale-and-ui-language/167444)._
