<p>Also worth noting: If you need a locale that Yii doesn’t offer, find the closest locale Yii/Craft does come with, and copy it with a new name (e.g. <code>en_us.php</code> => <code>en_mx.php</code>).</p>

<p>You may also wish to add it to the <code>'languages'</code> array within each of your selected locales’ data files, so you can customize what the locale should be labeled as within the CP.</p>

CC BY-SA 3.0
2014-09-03T16:38:58.557Z
2014-09-03T16:38:58.557Z
Brandon Kelly
<p>You can download the locales you want from <a href="https://github.com/yiisoft/yii/tree/master/framework/i18n/data">https://github.com/yiisoft/yii/tree/master/framework/i18n/data</a> and place in your <code>craft/app/framework/i18n/data</code> folder and they will show up as options.</p>

<p>Since Yii ships with so many locales, we initially stripped a lot of them out to keep the Craft download size to something reasonable.</p>

<p>If there are some locales we stripped that you think should be included in Craft, hit us up at support@buildwithcraft.com and we'll get them in.</p>

CC BY-SA 3.0
2014-09-11T15:50:13.167Z
Is the locales functionality agnostic enough that by adding custom locales you could uses this functionality for say a multi-campus site? Our client has multiple campuses however will share the CMS because only some of the content will be different. Client would like urls to reflect which campus they are on, much like a locale does. My thinking (possibly wrong) is using locales to accomplish something like this. However I don't want it to be hacking the CMS to shoehorn what the client needs.
a-am
CC BY-SA 3.0
2014-09-11T15:52:56.370Z
@aran Indeed. Think of locales as a way of targeting content to a specific user. You'd just be adding a "custom" locale, then.
Brad Bell
CC BY-SA 3.0
2014-11-14T18:05:11.947Z
If you create a custom locale and add it to this folder, I'm assuming you'll have to manually add it back after every update?
Jon Horton
CC BY-SA 3.0
2014-11-14T18:07:48.150Z
It's unlikely an auto-update would delete your custom locale. If you do a manual update, then probably since you are usually swapping out the whole `app` folder.
Brad Bell
CC BY-SA 3.0
2014-07-14T16:43:50.137Z
2014-07-14T16:43:50.137Z
Brad Bell
<p>Is it possible, by any method, to change the list of available locales? The current list includes some strange entries, e.g. East Germany, and we would like to update this to be more current for our client. </p>

CC BY-SA 3.0
2014-07-14T14:59:17.103Z
Just out of curiosity, what do you use this list for?
carlcs
CC BY-SA 3.0
2014-07-15T06:16:14.153Z
The Territories Fieldtype uses it as a master, and it includes some really old choices (East Germany?!).
Dan G
<config><localization>
Can I change the list of available locales?
# Can I change the list of available locales?

(Asked by: username_0 on 2014-07-14)

Is it possible, by any method, to change the list of available locales? The current list includes some strange entries, e.g. East Germany, and we would like to update this to be more current for our client.

**Tags:** config, localization
> **Comments:**
> **username_1**: Just out of curiosity, what do you use this list for?  
> **username_0**: The Territories Fieldtype uses it as a master, and it includes some really old choices (East Germany?!).  

---

## 2 answers

### Answer by username_3 on 2014-07-14. Score: 8 | Accepted answer

You can download the locales you want from <https://github.com/yiisoft/yii/tree/master/framework/i18n/data> and place in your `craft/app/framework/i18n/data` folder and they will show up as options.

Since Yii ships with so many locales, we initially stripped a lot of them out to keep the Craft download size to something reasonable.

If there are some locales we stripped that you think should be included in Craft, hit us up at support@buildwithcraft.com and we'll get them in.

> **Comments:**
> **username_4**: Is the locales functionality agnostic enough that by adding custom locales you could uses this functionality for say a multi-campus site? Our client has multiple campuses however will share the CMS because only some of the content will be different. Client would like urls to reflect which campus they are on, much like a locale does. My thinking (possibly wrong) is using locales to accomplish something like this. However I don't want it to be hacking the CMS to shoehorn what the client needs.  
> **username_3**: @aran Indeed. Think of locales as a way of targeting content to a specific user. You'd just be adding a "custom" locale, then.  
> **username_5**: If you create a custom locale and add it to this folder, I'm assuming you'll have to manually add it back after every update?  
> **username_3**: It's unlikely an auto-update would delete your custom locale. If you do a manual update, then probably since you are usually swapping out the whole `app` folder.  

---

### Answer by username_2 on 2014-09-03. Score: 3

Also worth noting: If you need a locale that Yii doesn’t offer, find the closest locale Yii/Craft does come with, and copy it with a new name (e.g. `en_us.php` => `en_mx.php`).

You may also wish to add it to the `'languages'` array within each of your selected locales’ data files, so you can customize what the locale should be labeled as within the CP.


---

