Enhance auto-translation

This commit is contained in:
2025-06-04 17:46:20 +02:00
parent 7432c4aced
commit 7685409a92
37 changed files with 166 additions and 119 deletions

View File

@@ -119,9 +119,11 @@ export class WH4FRPatchConfig {
static fixSpeciesTable() {
let speciesTable = game.wfrp4e.tables.findTable("species");
for (let result of speciesTable.results) {
let newResults = foundry.utils.duplicate(speciesTable.results);
for (let result of newResults) {
result.name = game.i18n.localize(result.name);
}
speciesTable.update({results: newResults } )
console.log("Species table patched to use 'Humain' instead of 'Human'", speciesTable);
}