# Filter by locale in Zotero Style Repository

**URL:** <https://discourse.citationstyles.org/t/filter-by-locale-in-zotero-style-repository/1138>\
**Category:** CSL Development\
**Created:** [November 2, 2012, 2:54am UTC](https://discourse.citationstyles.org/t/filter-by-locale-in-zotero-style-repository/1138 "2012-11-02T02:54:34Z")\
**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:** [November 2, 2012, 2:54am UTC](https://discourse.citationstyles.org/t/filter-by-locale-in-zotero-style-repository/1138/1 "2012-11-02T02:54:34Z")

</div>

Sebastian and I would like to see the ability to filter by locale in the  
Zotero Style Repository (see [http://forums.zotero.org/discussion/21148/](http://forums.zotero.org/discussion/21148/) ).  
Now that the code for the repository is up at  
[https://github.com/zotero/styles-repo](https://github.com/zotero/styles-repo), I might even try coding it, if Dan  
agrees to a specific solution.

With regard to the implementation, maybe we could have a dropdown menu with  
the following options:

Style language:  
“Any” (default)  
“English”  
“French”  
“German”  
“Portuguese”  
“Spanish”  
“Other”

Some thoughts:

- I’m not completely sure what to do with styles without a default-locale  
attribute. We could either give them their own label (“International”/“No  
set language”?), or just group them with the English styles (we could  
modify the label in the latter case, e.g. “English/International”).
- We could show the style count as part of the label, e.g. (“French (29)”).  
Anybody for or against?
- We currently sometimes include a language description in the style title,  
e.g. “(German)” in  
[https://github.com/citation-style-language/styles/blob/master/kritische-ausgabe.csl](https://github.com/citation-style-language/styles/blob/master/kritische-ausgabe.csl).  
This is a bit ugly, but is handy when searching for styles, and useful for  
distinguishing variants like “Chicago Manual of Style (author-date,  
German)” and Chicago Manual of Style (author-date)", so I’d like to keep it  
that way.
- I think we should limit the amount of menu entries to prevent the menu  
from becoming too unwieldy. For many languages we only have a few styles  
anyway. The current count, for the independent styles:

Styles tested: 718  
default-locale values:  
“en-US”: 439  
"en-GB": 129  
"no default-locale": 64  
"de-DE": 22  
"fr-FR": 16  
"fr": 14  
"pt-BR": 8  
"es-ES": 4  
"de": 3  
"zh-CN": 3  
"cs-CZ": 2  
"de-AT": 2  
"ru-RU": 2  
"da-DK": 1  
"en": 1  
"it-IT": 1  
"eu": 1  
"sv-SE": 1  
"de-CH": 1  
"tr-TR": 1  
"lt-LT": 1  
"sk-SK": 1  
"sp": 1 (Vienna Legal; I already asked the author about this)—

Rintze
