diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-19 22:45:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-19 22:45:46 +0100 |
| commit | 9591b7486b0d56b7bc938f18a93e6d3a373e9d40 (patch) | |
| tree | 48a63b8adacb962dca27e28850ddf3a3d1044430 | |
| parent | 546094a102b8c59f9d801a62f7e6ecaec736370f (diff) | |
Add DCNC tags file.
| -rwxr-xr-x | scripts/update-language-subtags | 8 | ||||
| -rw-r--r-- | tags/dcnc | 126 |
2 files changed, 134 insertions, 0 deletions
diff --git a/scripts/update-language-subtags b/scripts/update-language-subtags index 979d8168..874a6dc7 100755 --- a/scripts/update-language-subtags +++ b/scripts/update-language-subtags @@ -2,6 +2,7 @@ import os import urllib.request +import json block = {} lists = {} @@ -33,3 +34,10 @@ for k, v in lists.items(): print(e[0], file=f) print(e[1], file=f) + +with urllib.request.urlopen('https://registry.isdcf.com/languages') as f, open(os.path.join('tags', 'dcnc'), 'w') as g: + js = json.loads(f.read()) + for d in js['data']: + if 'dcncTag' in d: + print(d['rfc5646Tag'], file=g) + print(d['dcncTag'], file=g) diff --git a/tags/dcnc b/tags/dcnc new file mode 100644 index 00000000..7aa20dd8 --- /dev/null +++ b/tags/dcnc @@ -0,0 +1,126 @@ +hy +HY +sq +SQ +ar +AR +bs +BS +bg +BG +ca +CA +yue +YUE +cmn +CMN +cmn-Hans +QMS +cmn-Hant +QMT +nan +NAN +cmn-TW +QTM +hr +HR +cs +CS +da +DA +nl +NL +en +EN +et +ET +eu +EU +fi +FI +nl-BE +VLS +fr +FR +fr-CA +QFC +de +DE +gsw +GSW +el +EL +he +HE +hi +HI +hu +HU +is +IS +id +IND +it +IT +ja +JA +kk +KK +km +KM +ko +KO +ky +KG +lv +LV +lt +LT +ms +MSA +mn +MN +no +NO +pl +PL +pt-BR +QBP +pt +PT +ro +RO +ru +RU +sr +SR +sk +SK +sl +SL +es-AR +QSA +es +ES +es-419 +LAS +es-MX +QSM +sv +SV +ta +TA +te +TE +th +TH +tr +TR +uk +UK +ur +UR +vi +VI +cy +WEL |
