Enhance auto-translate again

This commit is contained in:
2020-03-31 09:27:04 +02:00
parent 316069d64f
commit 69bbf569fb
4 changed files with 31 additions and 3 deletions

View File

@ -68,7 +68,16 @@ Hooks.once('init', () => {
talents_list[i] = transl;
}
return talents_list;
}
},
// To avoid duplicateing class for all careers
"career_class": (value) => {
return game.i18n.localize( value.trim() );
},
// Search back in careers the translated name of the groupe (as it is the name of the level career itself)
"career_careergroup": (value) => {
var compendium = game.packs.find(p => p.collection === 'wfrp4e.careers');
return compendium.i18nName( value );
}
});
}