Enhance auto-translation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user