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": {
"label": "Identifier"
},
"gmNotes": {
"label": "GM Notes"
}
},
"Ancestry": {

View file

@ -157,7 +157,10 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
const gmNotesElement = document.createElement('section');
gmNotesElement.classList.add('gm-notes-section');
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;
}

View file

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