[Fix] Translation Fixes (#1789)

* Fixed translations

* .
This commit is contained in:
WBHarry 2026-04-11 22:55:26 +02:00 committed by GitHub
parent 1a57b55723
commit 8a0b1b8e22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 128 additions and 70 deletions

View file

@ -955,15 +955,15 @@ export const countdownAppMode = {
export const sceneRangeMeasurementSetting = {
disable: {
id: 'disable',
label: 'Disable Daggerheart Range Measurement'
label: 'DAGGERHEART.CONFIG.SceneRangeMeasurementTypes.disable'
},
default: {
id: 'default',
label: 'Default'
label: 'DAGGERHEART.CONFIG.SceneRangeMeasurementTypes.default'
},
custom: {
id: 'custom',
label: 'Custom'
label: 'DAGGERHEART.CONFIG.SceneRangeMeasurementTypes.custom'
}
};

View file

@ -7,7 +7,12 @@ export const typeConfig = {
},
{
key: 'system.type',
label: 'DAGGERHEART.GENERAL.type'
label: 'DAGGERHEART.GENERAL.type',
format: type => {
if (!type) return '-';
return CONFIG.DH.ACTOR.allAdversaryTypes()[type].label;
}
}
],
filters: [
@ -318,7 +323,14 @@ export const typeConfig = {
},
{
key: 'system.domains',
label: 'DAGGERHEART.GENERAL.Domain.plural'
label: 'DAGGERHEART.GENERAL.Domain.plural',
format: domains => {
const config = CONFIG.DH.DOMAIN.allDomains();
return domains
.map(x => (x ? game.i18n.localize(config[x].label) : null))
.filter(x => x)
.join(', ');
}
}
],
filters: [
@ -367,7 +379,8 @@ export const typeConfig = {
},
{
key: 'system.spellcastingTrait',
label: 'DAGGERHEART.ITEMS.Subclass.spellcastingTrait'
label: 'DAGGERHEART.ITEMS.Subclass.spellcastingTrait',
format: trait => (trait ? `DAGGERHEART.CONFIG.Traits.${trait}.name` : '-')
}
],
filters: [

View file

@ -46,18 +46,14 @@ export const gameSettings = {
export const actionAutomationChoices = {
never: {
id: 'never',
label: 'Never'
label: 'DAGGERHEART.CONFIG.ActionAutomationChoices.never'
},
showDialog: {
id: 'showDialog',
label: 'Show Dialog only'
label: 'DAGGERHEART.CONFIG.ActionAutomationChoices.showDialog'
},
// npcOnly: {
// id: "npcOnly",
// label: "Always for non-characters"
// },
always: {
id: 'always',
label: 'Always'
label: 'DAGGERHEART.CONFIG.ActionAutomationChoices.always'
}
};