Skip to content

Commit

Permalink
Use the actual dropdown label for the localized name language input l…
Browse files Browse the repository at this point in the history
…abel (re: #8165)
  • Loading branch information
quincylvania committed Nov 6, 2020
1 parent 02add6e commit 1a43dbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/ui/fields/localized.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a43dbe

Please sign in to comment.