Fix translating "New Item" string

This commit is contained in:
jalensailin
2026-06-20 00:22:41 -04:00
parent 58305db911
commit 42c682c3bd
+3 -6
View File
@@ -752,12 +752,9 @@ export default class DGActorSheet extends DGSheetMixin(ActorSheetV2) {
*/
_onItemCreate(type) {
// Initialize a default name.
const name = game.i18n.format(
game.i18n.translations.DOCUMENT?.New || "DG.FallbackText.newItem",
{
type: game.i18n.localize(`TYPES.Item.${type}`),
},
);
const name = game.i18n.format("DG.FallbackText.newItem", {
type: game.i18n.localize(`TYPES.Item.${type}`),
});
// Prepare the item object.
const itemData = {