# Locale codes of CSL locale files

**URL:** <https://discourse.citationstyles.org/t/locale-codes-of-csl-locale-files/1004>\
**Category:** CSL Development\
**Created:** [May 1, 2011, 1:43am UTC](https://discourse.citationstyles.org/t/locale-codes-of-csl-locale-files/1004 "2011-05-01T01:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [May 1, 2011, 1:43am UTC](https://discourse.citationstyles.org/t/locale-codes-of-csl-locale-files/1004/1 "2011-05-01T01:43:10Z")

</div>

Hi all,

After discussing it with Frank, I decided to change the values of xml:lang  
on cs:locale in the CSL 1.0 locale styles to the “xx-XX” locale code in  
their file names. Before this change the values consisted only of the  
language code (“xx”), which was a bit weird (e.g. locales-pt-BR.xml and  
locales-pt-PT.xml both had an xml:lang value of “pt”).

> <https://github.com/citation-style-language/locales/commit/2ceddf596c571f2fd30a0928db06f3e92d174202>

According to Frank, this change shouldn’t affect citeproc-js, but I’d like  
to mention it for other implementors. In related news, I just added an en-GB  
locale with UK dates and grammar settings.

Rintze
