Answers.Body: <p>There are several locales that Yii comes with but Craft doesn't, simply to keep Craft's filesize down a bit (they add a lot of weight). You can see the master list of Yii locales here: <a href="https://github.com/yiisoft/yii/tree/master/framework/i18n/data" rel="nofollow">https://github.com/yiisoft/yii/tree/master/framework/i18n/data</a>   - If you see a locale in there you want that Craft doesn't come with, just view the raw version of the file on GitHub and then save it to your craft/app/framework/i18n/data/ folder. Then Craft will start supporting it.</p>
  
  <p>If you need a locale that Yii <em>doesn’t</em> 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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-30T00:40:10.013Z
Answers.Text: Is this safe for when the system updates? I am just thinking there should be a top level directory not so deep rooted into the framework to do this.
Answers.UserDisplayName: Andrew Smith
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-30T04:05:59.167Z
Answers.Text: It should be safe, yeah. We will be making this process easier in the future for sure, but this is how you can do it today :)
Answers.UserDisplayName: Brandon Kelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-29T21:26:11.730Z
Answers.LastActivityDate: 2014-08-29T21:26:11.730Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>I have a site that has a few different countries that speak the same language but want to have them as different Locales. </p>
  
  <ul>
  <li>Mexico (english)</li>
  <li>Mexico (spanish)</li>
  <li>USA (english)</li>
  <li>USA (spanish)</li>
  <li>Peru (english)</li>
  <li>Peru (spanish)</li>
  </ul>
  
  <p>These might all share some content but the manager of each region might want to change the content for their own region.</p>
  
  <p>How can I add in new Locales in the locale list in Craft?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-08-29T13:27:26.153Z
Comments.Text: Andrew, see Brad's answer to this question here: ["Can I change the list of available locales?"](http://craftcms.stackexchange.com/q/1054/125).
Comments.UserDisplayName: carlcs
Tags: <localization>
Title: How can I add in new Locales to the locale list?
ThreadText: # How can I add in new Locales to the locale list?
  
  (Asked by: username_0 on 2014-08-29)
  
  I have a site that has a few different countries that speak the same language but want to have them as different Locales.
  
  * Mexico (english)
  * Mexico (spanish)
  * USA (english)
  * USA (spanish)
  * Peru (english)
  * Peru (spanish)
  
  These might all share some content but the manager of each region might want to change the content for their own region.
  
  How can I add in new Locales in the locale list in Craft?
  
  **Tags:** localization
  
  > **Comments:**
  > **username_1**: username_0, see Brad's answer to this question here: ["Can I change the list of available locales?"](http://craftcms.stackexchange.com/q/1054/125).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2014-08-29. Score: 2 | Accepted answer
  
  There are several locales that Yii comes with but Craft doesn't, simply to keep Craft's filesize down a bit (they add a lot of weight). You can see the master list of Yii locales here: <https://github.com/yiisoft/yii/tree/master/framework/i18n/data> - If you see a locale in there you want that Craft doesn't come with, just view the raw version of the file on GitHub and then save it to your craft/app/framework/i18n/data/ folder. Then Craft will start supporting it.
  
  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`).
  
  > **Comments:**
  > **username_0**: Is this safe for when the system updates? I am just thinking there should be a top level directory not so deep rooted into the framework to do this.  
  > **username_2**: It should be safe, yeah. We will be making this process easier in the future for sure, but this is how you can do it today :)  
  
  ---
  
  