From 42c682c3bda145d2ff61232554d9ad58d13f6d04 Mon Sep 17 00:00:00 2001 From: jalensailin Date: Sat, 20 Jun 2026 00:22:41 -0400 Subject: [PATCH] Fix translating "New Item" string --- module/sheets/base-actor-sheet.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/module/sheets/base-actor-sheet.js b/module/sheets/base-actor-sheet.js index 5b2b651..72ea9b9 100644 --- a/module/sheets/base-actor-sheet.js +++ b/module/sheets/base-actor-sheet.js @@ -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 = {