Localize GM Notes header label

This commit is contained in:
Carlos Fernandez 2026-07-13 04:06:11 -04:00
parent 9d277ea8ea
commit bb2289fa95
3 changed files with 8 additions and 2 deletions

View file

@ -2550,6 +2550,9 @@
}, },
"identifier": { "identifier": {
"label": "Identifier" "label": "Identifier"
},
"gmNotes": {
"label": "GM Notes"
} }
}, },
"Ancestry": { "Ancestry": {

View file

@ -157,7 +157,10 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
const gmNotesElement = document.createElement('section'); const gmNotesElement = document.createElement('section');
gmNotesElement.classList.add('gm-notes-section'); gmNotesElement.classList.add('gm-notes-section');
gmNotesElement.dataset.visibility = 'gm'; gmNotesElement.dataset.visibility = 'gm';
gmNotesElement.innerHTML = '<header class="gm-notes">GM Notes</header>' + this.gmNotes; const header = document.createElement('header');
header.classList.add('gm-notes');
header.textContent = _loc('DAGGERHEART.ITEMS.FIELDS.gmNotes.label');
gmNotesElement.innerHTML = header.outerHTML + this.gmNotes;
fullDescription += gmNotesElement.outerHTML; fullDescription += gmNotesElement.outerHTML;
} }

View file

@ -8,7 +8,7 @@
{{#if (and systemFields.gmNotes @root.user.isGM)}} {{#if (and systemFields.gmNotes @root.user.isGM)}}
<section class="gm-notes-section"> <section class="gm-notes-section">
{{#if enrichedGMNotes}} {{#if enrichedGMNotes}}
<header class="gm-notes">GM Notes</header> <header class="gm-notes">{{localize "DAGGERHEART.ITEMS.FIELDS.gmNotes.label"}}</header>
{{/if}} {{/if}}
<prose-mirror <prose-mirror
name="system.gmNotes" name="system.gmNotes"