Cleanup & Reformatage
This commit is contained in:
@ -29,13 +29,14 @@ export class RddCompendiumOrganiser {
|
||||
|
||||
static getEntityTypeLabel(entity) {
|
||||
const documentName = entity?.documentName
|
||||
const type = entity?.type
|
||||
const type = entity?.type
|
||||
if (documentName === 'Actor' || documentName === 'Item') {
|
||||
const label = CONFIG[documentName]?.typeLabels?.[type] ?? type;
|
||||
return game.i18n.has(label) ? game.i18n.localize(label) : t;
|
||||
if (game.i18n.has(label)) {
|
||||
return game.i18n.localize(label);
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user