Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add indigenous languages not in CLDR #10684

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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–Norfuk"},
"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
4 changes: 2 additions & 2 deletions data/territory_languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"ar": ["es", "en", "cy", "gn"],
"as": ["sm", "en"],
"at": ["de", "bar", "en", "fr", "it", "hr", "sl", "hu"],
"au": ["en", "zh-Hant", "it", "wbp", "hnj"],
"au": ["en", "aus", "aer", "aoi", "bdy", "coa", "dgw", "gjm", "gjr", "gup", "jay", "mwf", "mwp", "nys", "pih", "piu", "pjt", "rop", "tcs", "tiw", "ulk", "wbp", "wrh", "wth", "wyi", "xdk", "xni", "xph", "xrd", "zku"],
"aw": ["nl", "pap", "en"],
"ax": ["sv"],
"az": ["az", "az-Cyrl", "tly", "ku", "ttt", "tkr"],
Expand Down Expand Up @@ -175,7 +175,7 @@
"np": ["ne", "mai", "bho", "new", "jml", "en", "dty", "awa", "thl", "bap", "tdg", "thr", "lif", "mgp", "thq", "mrd", "bfy", "xsr", "rjs", "taj", "hi", "gvr", "bo", "tkt", "tdh", "bn", "unr-Deva", "lep"],
"nr": ["en", "na"],
"nu": ["en", "niu"],
"nz": ["en", "mi"],
"nz": ["en", "mi", "rrm"],
"om": ["ar", "bal", "fa"],
"pa": ["es", "en", "zh-Hant"],
"pe": ["es", "qu", "ay"],
Expand Down
6 changes: 6 additions & 0 deletions scripts/build_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ function generateTerritoryLanguages() {
// override/adjust some territory languages which are not included in CLDR data
territoryLanguages.pk.push('pnb', 'scl', 'trw', 'kls'); // https://github.com/openstreetmap/iD/pull/9242
lodash.pull(territoryLanguages.pk, 'pa-Arab', 'lah', 'tg-Arab'); // - " -
territoryLanguages.au = [
'en', 'aus', 'aer', 'aoi', 'bdy', 'coa', 'dgw', 'gjm', 'gjr', 'gup',
'jay', 'mwf', 'mwp', 'nys', 'pih', 'piu', 'pjt', 'rop', 'tcs', 'tiw',
'ulk', 'wbp', 'wrh', 'wth', 'wyi', 'xdk', 'xni', 'xph', 'xrd', 'zku'
]; // https://github.com/openstreetmap/iD/pull/10684
territoryLanguages.nz.push('rrm'); // https://github.com/openstreetmap/iD/pull/10684

return territoryLanguages;
}
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 @@
// 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 @@
'brh': {
nativeName: 'براہوئی'
},
coa: { nativeName: 'Basa Pulu Kokos' },
'cdo': {
nativeName: '閩東語'
},
Expand Down Expand Up @@ -64,6 +69,7 @@
script: 'Latn',
nativeName: 'Pó-sing-gṳ̂ (Báⁿ-uā-ci̍)'
},
dgw: { nativeName: 'Daungwurrung' },
'gan': {
nativeName: '贛語'
},
Expand All @@ -77,6 +83,9 @@
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 @@
base: 'ja',
script: 'Latn'
},
jay: { nativeName: 'Yan-nhaŋu' },
'kls': {
nativeName: 'Kal\'as\'amondr'
},
Expand All @@ -123,6 +133,8 @@
script: 'Mong',
nativeName: 'ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ'
},
mwf: { nativeName: 'Murrinh-Patha' },
mwp: { nativeName: 'Kalaw Lagaw Ya' },
'nan': {
nativeName: '閩南語'
},
Expand All @@ -141,12 +153,18 @@
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 @@
'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 @@
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 @@
base: 'zh',
script: 'Latn',
nativeName: 'Zhōngwén (Hànyǔ Pīnyīn)'
}
},
zku: { nativeName: 'Kaurna' },
};

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