Show fieldLocalizedName in Scaffold - List All Fields (#2965)

This commit is contained in:
YFdyh000 2023-01-17 23:38:43 +08:00 committed by Abe Jellinek
parent 7e0b898765
commit bb5fe45f31

View file

@ -858,7 +858,8 @@ var Scaffold = new function () {
var fieldList = Zotero.ItemFields.getItemTypeFields(typeID);
for (let field of fieldList) {
var key = Zotero.ItemFields.getName(field);
outputObject[key] = "";
let fieldLocalizedName = Zotero.ItemFields.getLocalizedString(field);
outputObject[key] = fieldLocalizedName;
}
var creatorList = Zotero.CreatorTypes.getTypesForItemType(typeID);
var creators = [];