Index: filters/tooglocale.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/filters/tooglocale.py |
@@ -0,0 +1,33 @@ |
+og_locales = { |
+ "ar": "ar_AR", |
Vasily Kuznetsov
2017/08/09 17:02:48
If our Python coding style applies to the websites
juliandoucette
2017/08/09 19:19:41
Done.
|
+ "bg": "bg_BG", |
+ "de": "de_DE", |
+ "dk": "da_DK", |
+ "da": "da_DK", |
+ "en": "en_US", |
+ "es": "es_LA", |
+ "fr": "fr_FR", |
+ "el": "el_GR", |
+ "he": "he_IL", |
+ "hu": "hu_HU", |
+ "it": "it_IT", |
+ "ja": "ja_JP", |
+ "ko": "ko_KR", |
+ "lt": "lt_LT", |
+ "nl": "nl_NL", |
+ "pl": "pl_PL", |
+ "pt": "pt_PT", |
+ "pt_BR": "pt_BR", |
+ "ro": "ro_RO", |
+ "ru": "ru_RU", |
+ "sk": "sk_SK", |
+ "sl": "sl_SI", |
+ "sv": "sv_SE", |
+ "tr": "tr_TR", |
+ "vi": "vi_VN", |
+ "zh_CN": "zh_CN", |
+ "zh_TW": "zh_TW", |
+} |
+ |
+def tooglocale(locale): |
+ return og_locales[locale] |