Skip to content

Commit

Permalink
add indigenous languages not in CLDR
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed Jan 20, 2025
1 parent a03fbde commit 2bf786d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
* Update Sinitic languages in the Multilingual Names field ([#10488], thanks [@winstonsung])
* Update the list of languages in the Wikipedia field ([#10489])
* Add Ladin (language code `lld`) as an available option for multilingual names
* Add 30 indigenous languages as dropdown options for multilingual names ([#10684], thanks [@k-yle])
#### :hourglass: Performance
#### :mortar_board: Walkthrough / Help
* Fix walkthrough from showing tooltips on wrong location under certain circumstances ([#10650], [#10624], [#10634])
Expand All @@ -71,6 +72,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
[#10624]: https://github.com/openstreetmap/iD/issues/10624
[#10634]: https://github.com/openstreetmap/iD/issues/10634
[#10650]: https://github.com/openstreetmap/iD/issues/10650
[#10684]: https://github.com/openstreetmap/iD/pull/10684
[@winstonsung]: https://github.com/winstonsung/
[@Nekzuris]: https://github.com/Nekzuris
[@michaelabon]: https://github.com/michaelabon
Expand Down
30 changes: 30 additions & 0 deletions data/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ady": {},
"ae": {},
"aeb": {},
"aer": {"nativeName": "Arrernte"},
"af": {"nativeName": "Afrikaans"},
"afh": {},
"agq": {"nativeName": "Aghem"},
Expand All @@ -22,6 +23,7 @@
"ang": {},
"ann": {"nativeName": "Obolo"},
"anp": {},
"aoi": {"nativeName": "Anindilyakwa"},
"apc": {"nativeName": "العامية"},
"ar": {"nativeName": "العربية"},
"arc": {},
Expand All @@ -37,6 +39,7 @@
"asa": {"nativeName": "Kipare"},
"ast": {"nativeName": "asturianu"},
"atj": {},
"aus": {"nativeName": "Australian Aboriginal Languages"},
"av": {},
"avk": {},
"awa": {},
Expand All @@ -55,6 +58,7 @@
"bax": {},
"bbc": {},
"bbj": {},
"bdy": {"nativeName": "Yugambeh–Bandjalangic"},
"be": {"nativeName": "беларуская"},
"be-tarask": {},
"bej": {},
Expand Down Expand Up @@ -122,6 +126,7 @@
"ckb": {"nativeName": "کوردیی ناوەندی"},
"clc": {},
"co": {"nativeName": "corsu"},
"coa": {"nativeName": "Basa Pulu Kokos"},
"cop": {},
"cps": {},
"cpx": {"nativeName": "莆仙語"},
Expand Down Expand Up @@ -152,6 +157,7 @@
"del": {},
"den": {},
"dgr": {},
"dgw": {"nativeName": "Daungwurrung"},
"din": {},
"dje": {"nativeName": "Zarmaciine"},
"doi": {"nativeName": "डोगरी"},
Expand Down Expand Up @@ -216,6 +222,8 @@
"gd": {"nativeName": "Gàidhlig"},
"gez": {},
"gil": {},
"gjm": {"nativeName": "Gunditjmara"},
"gjr": {"nativeName": "Gurindji Kriol"},
"gl": {"nativeName": "galego"},
"glk": {},
"gmh": {},
Expand All @@ -229,6 +237,7 @@
"gsw": {"nativeName": "Schwiizertüütsch"},
"gu": {"nativeName": "ગુજરાતી"},
"guc": {},
"gup": {"nativeName": "Bininj Gun-Wok"},
"gur": {},
"guz": {"nativeName": "Ekegusii"},
"gv": {"nativeName": "Gaelg"},
Expand Down Expand Up @@ -282,6 +291,7 @@
"ja-Hira": {"base": "ja", "script": "Hira"},
"ja-Latn": {"base": "ja", "script": "Latn"},
"jam": {},
"jay": {"nativeName": "Yan-nhaŋu"},
"jbo": {"nativeName": "la .lojban."},
"jgo": {"nativeName": "Ndaꞌa"},
"jmc": {"nativeName": "Kimachame"},
Expand Down Expand Up @@ -429,7 +439,9 @@
"mt": {"nativeName": "Malti"},
"mua": {"nativeName": "MUNDAŊ"},
"mus": {"nativeName": "Mvskoke"},
"mwf": {"nativeName": "Murrinh-Patha"},
"mwl": {},
"mwp": {"nativeName": "Kalaw Lagaw Ya"},
"mwr": {},
"mwv": {},
"my": {"nativeName": "မြန်မာ"},
Expand Down Expand Up @@ -470,6 +482,7 @@
"nym": {},
"nyn": {"nativeName": "Runyankore"},
"nyo": {},
"nys": {"nativeName": "Nyungar"},
"nzi": {},
"oc": {"nativeName": "occitan"},
"oj": {},
Expand Down Expand Up @@ -498,7 +511,10 @@
"pfl": {},
"phn": {},
"pi": {},
"pih": {"nativeName": "Pitkern–Norfolk"},
"pis": {"nativeName": "Pijin"},
"piu": {"nativeName": "Pintupi"},
"pjt": {"nativeName": "Pitjantjatjara"},
"pl": {"nativeName": "polski"},
"pms": {},
"pnb": {"nativeName": "پنجابی"},
Expand All @@ -524,6 +540,8 @@
"ro": {"nativeName": "română"},
"rof": {"nativeName": "Kihorombo"},
"rom": {},
"rop": {"nativeName": "Australian Kriol"},
"rrm": {"nativeName": "Moriori"},
"rtm": {},
"ru": {"nativeName": "русский"},
"rue": {},
Expand Down Expand Up @@ -609,6 +627,7 @@
"szl": {"nativeName": "ślōnski"},
"ta": {"nativeName": "தமிழ்"},
"tce": {},
"tcs": {"nativeName": "Yumplatok"},
"tcy": {},
"te": {"nativeName": "తెలుగు"},
"tem": {},
Expand All @@ -622,6 +641,7 @@
"ti": {"nativeName": "ትግርኛ"},
"tig": {},
"tiv": {},
"tiw": {"nativeName": "Tiwi"},
"tk": {"nativeName": "türkmen dili"},
"tkl": {},
"tkr": {},
Expand Down Expand Up @@ -656,6 +676,7 @@
"ug": {"nativeName": "ئۇيغۇرچە"},
"uga": {},
"uk": {"nativeName": "українська"},
"ulk": {"nativeName": "Meriam Mir"},
"umb": {},
"ur": {"nativeName": "اردو"},
"uz": {"nativeName": "o‘zbek"},
Expand Down Expand Up @@ -683,15 +704,23 @@
"was": {},
"wbl": {"nativeName": "وخی"},
"wbp": {"nativeName": "Warlpiri"},
"wlp": {"nativeName": "Warlpiri"},
"wo": {"nativeName": "Wolof"},
"wrh": {"nativeName": "Wiradjuri"},
"wth": {"nativeName": "Wathawurrung"},
"wuu": {"nativeName": "吳語"},
"wuu-Hans": {"base": "wuu", "script": "Hans", "nativeName": "吴语(简体)"},
"wuu-Hant": {"base": "wuu", "script": "Hant", "nativeName": "吳語(正體)"},
"wyi": {"nativeName": "Woiwurrung"},
"xal": {},
"xdk": {"nativeName": "Dharug"},
"xh": {"nativeName": "IsiXhosa"},
"xmf": {},
"xni": {"nativeName": "Ngarigo"},
"xnr": {"nativeName": "कांगड़ी"},
"xog": {"nativeName": "Olusoga"},
"xph": {"nativeName": "Tyerrernotepanner"},
"xrd": {"nativeName": "Gundungurra"},
"yao": {},
"yap": {},
"yav": {"nativeName": "nuasue"},
Expand All @@ -712,6 +741,7 @@
"zh-Hans": {"base": "zh", "script": "Hans", "nativeName": "简体中文"},
"zh-Hant": {"base": "zh", "script": "Hant", "nativeName": "繁體中文"},
"zh-Latn-pinyin": {"base": "zh", "script": "Latn", "nativeName": "Zhōngwén (Hànyǔ Pīnyīn)"},
"zku": {"nativeName": "Kaurna"},
"zu": {"nativeName": "isiZulu"},
"zun": {},
"zza": {}
Expand Down
32 changes: 31 additions & 1 deletion scripts/language_names.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function getLangNamesInNativeLang() {
// manually add languages we want that aren't in CLDR
// see for example https://github.com/openstreetmap/iD/pull/9241/
let unordered = {
aer: { nativeName: 'Arrernte' },
aoi: { nativeName: 'Anindilyakwa' },
aus: { nativeName: 'Australian Aboriginal Languages' },
bdy: { nativeName: 'Yugambeh–Bandjalangic' },
'bft': {
nativeName: 'بلتی'
},
Expand All @@ -28,6 +32,7 @@ function getLangNamesInNativeLang() {
'brh': {
nativeName: 'براہوئی'
},
coa: { nativeName: 'Basa Pulu Kokos' },
'cdo': {
nativeName: '閩東語'
},
Expand Down Expand Up @@ -64,6 +69,7 @@ function getLangNamesInNativeLang() {
script: 'Latn',
nativeName: 'Pó-sing-gṳ̂ (Báⁿ-uā-ci̍)'
},
dgw: { nativeName: 'Daungwurrung' },
'gan': {
nativeName: '贛語'
},
Expand All @@ -77,6 +83,9 @@ function getLangNamesInNativeLang() {
script: 'Hant',
nativeName: '贛語(繁體)'
},
gjm: { nativeName: 'Gunditjmara' },
gjr: { nativeName: 'Gurindji Kriol' },
gup: { nativeName: 'Bininj Gun-Wok' },
'hak': {
nativeName: '客家語'
},
Expand Down Expand Up @@ -106,6 +115,7 @@ function getLangNamesInNativeLang() {
base: 'ja',
script: 'Latn'
},
jay: { nativeName: 'Yan-nhaŋu' },
'kls': {
nativeName: 'Kal\'as\'amondr'
},
Expand All @@ -123,6 +133,8 @@ function getLangNamesInNativeLang() {
script: 'Mong',
nativeName: 'ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ'
},
mwf: { nativeName: 'Murrinh-Patha' },
mwp: { nativeName: 'Kalaw Lagaw Ya' },
'nan': {
nativeName: '閩南語'
},
Expand All @@ -141,12 +153,18 @@ function getLangNamesInNativeLang() {
script: 'Latn',
nativeName: 'Bân-lâm-gú (Tâi-lô)'
},
nys: { nativeName: 'Nyungar' },
'oc': {
nativeName: 'Occitan'
},
pih: { nativeName: 'Pitkern–Norfuk' },
piu: { nativeName: 'Pintupi' },
pjt: { nativeName: 'Pitjantjatjara' },
'pnb': {
nativeName: 'پنجابی'
},
rop: { nativeName: 'Australian Kriol' },
rrm: { nativeName: 'Moriori' },
'scl': {
nativeName: 'ݜݨیاٗ'
},
Expand All @@ -156,12 +174,16 @@ function getLangNamesInNativeLang() {
'skr': {
nativeName: 'سرائیکی'
},
tcs: { nativeName: 'Yumplatok' },
tiw: { nativeName: 'Tiwi' },
'trw': {
nativeName: 'توروالی'
},
ulk: { nativeName: 'Meriam Mir' },
'wbl': {
nativeName: 'وخی'
},
wlp: { nativeName: 'Warlpiri' },
'wuu': {
nativeName: '吳語'
},
Expand All @@ -175,6 +197,13 @@ function getLangNamesInNativeLang() {
script: 'Hant',
nativeName: '吳語(正體)'
},
wrh: { nativeName: 'Wiradjuri' },
wth: { nativeName: 'Wathawurrung' },

Check failure on line 201 in scripts/language_names.js

View workflow job for this annotation

GitHub Actions / Check for spelling errors

wth ==> with

Check failure on line 201 in scripts/language_names.js

View workflow job for this annotation

GitHub Actions / Check for spelling errors

wth ==> with
wyi: { nativeName: 'Woiwurrung' },
xdk: { nativeName: 'Dharug' },
xni: { nativeName: 'Ngarigo' },
xph: { nativeName: 'Tyerrernotepanner' },
xrd: { nativeName: 'Gundungurra' },
'yue-Hans': {
base: 'yue',
script: 'Hans',
Expand All @@ -189,7 +218,8 @@ function getLangNamesInNativeLang() {
base: 'zh',
script: 'Latn',
nativeName: 'Zhōngwén (Hànyǔ Pīnyīn)'
}
},
zku: { nativeName: 'Kaurna' },
};

let langDirectoryPaths = fs.readdirSync(cldrMainDir);
Expand Down

0 comments on commit 2bf786d

Please sign in to comment.