mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Use the actual dropdown label for the localized name language input label (re: #8165)
This commit is contained in:
@@ -567,7 +567,11 @@ export function uiFieldLocalized(field, context) {
|
||||
});
|
||||
|
||||
utilGetSetValue(entries.select('.localized-lang'), function(d) {
|
||||
return localizer.languageName(d.lang);
|
||||
var langItem = _languagesArray.find(function(item) {
|
||||
return item.code === d.lang;
|
||||
});
|
||||
if (langItem) return langItem.label;
|
||||
return d.lang;
|
||||
});
|
||||
|
||||
utilGetSetValue(entries.select('.localized-value'), function(d) {
|
||||
|
||||
Reference in New Issue
Block a user