Fixed translations

This commit is contained in:
WBHarry 2026-04-11 22:19:52 +02:00
parent 6804bfe047
commit ccef7fff2c
40 changed files with 122 additions and 70 deletions

View file

@ -7,7 +7,8 @@ export const typeConfig = {
},
{
key: 'system.type',
label: 'DAGGERHEART.GENERAL.type'
label: 'DAGGERHEART.GENERAL.type',
format: type => (type ? `DAGGERHEART.CONFIG.AdversaryType.${type}.label` : '-')
}
],
filters: [
@ -318,7 +319,12 @@ export const typeConfig = {
},
{
key: 'system.domains',
label: 'DAGGERHEART.GENERAL.Domain.plural'
label: 'DAGGERHEART.GENERAL.Domain.plural',
format: domains =>
domains
.map(x => (!x ? null : game.i18n.localize(`DAGGERHEART.GENERAL.Domain.${x}.label`)))
.filter(x => x)
.join(', ')
}
],
filters: [
@ -367,7 +373,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: [