Localization and minor fix

This commit is contained in:
Carlos Fernandez 2026-05-02 18:26:49 -04:00
parent a5db9371c6
commit 2c6d813f25
3 changed files with 2 additions and 2 deletions

View file

@ -2442,6 +2442,7 @@
"single": "Miss", "single": "Miss",
"plural": "Miss" "plural": "Miss"
}, },
"missingX": "Missing {x}",
"maxWithThing": "Max {thing}", "maxWithThing": "Max {thing}",
"missingDragDropThing": "Drop {thing} here", "missingDragDropThing": "Drop {thing} here",
"multiclass": "Multiclass", "multiclass": "Multiclass",

View file

@ -1,4 +1,3 @@
import { sortBy } from '../../../helpers/utils.mjs';
import DHBaseItemSheet from '../api/base-item.mjs'; import DHBaseItemSheet from '../api/base-item.mjs';
const { TextEditor } = foundry.applications.ux; const { TextEditor } = foundry.applications.ux;

View file

@ -45,7 +45,7 @@ export default class SubclassSheet extends DHBaseItemSheet {
const context = await super._prepareContext(options); const context = await super._prepareContext(options);
if (this.document.system.linkedClass) { if (this.document.system.linkedClass) {
context.class = (await fromUuid(this.document.system.linkedClass)) ?? { context.class = (await fromUuid(this.document.system.linkedClass)) ?? {
name: 'Missing Class', name: _loc('DAGGERHEART.GENERAL.missingX', { x: _loc('TYPES.Item.class') }),
img: 'systems/daggerheart/assets/icons/documents/items/laurel-crown.svg', img: 'systems/daggerheart/assets/icons/documents/items/laurel-crown.svg',
missing: true missing: true
}; };