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