Auto-translate spells + parse eis items

This commit is contained in:
LeRatierBretonnien 2020-04-30 21:56:09 +02:00
parent d1fc5afbcb
commit 7256dc14c2
2 changed files with 26 additions and 23 deletions

View File

@ -51,6 +51,8 @@ Hooks.on("chatMessage", (html, content, msg) => {
/* Additionnal hooks ready */
Hooks.once('ready', () => {
const lang = game.settings.get('core', 'language');
if ( lang == "fr" ) {
game.packs.forEach((pack, idx) => {
if(!pack.translated && pack.entity === 'Actor') {
let translations = {
@ -74,5 +76,6 @@ Hooks.once('ready', () => {
game.packs[idx] = new TranslatedCompendium(pack, translations);
}
} );
}
} );

View File

@ -2,7 +2,7 @@
"name": "WH4-fr-translation",
"title": "Traduction du module WH4 en Français.",
"description": "La traduction du module WH4.",
"version": "0.64",
"version": "0.65",
"minimumCoreVersion" : "0.5.1",
"compatibleCoreVersion": "0.5.5",
"author": "LeRatierBretonnien",