Add FR translation

This commit is contained in:
2025-06-11 11:35:39 +02:00
parent ecb7fc2757
commit 17be9df64b
14 changed files with 66 additions and 30 deletions

View File

@@ -113,11 +113,26 @@ function preLocalizeConfig() {
Hooks.once("ready", function () {
console.info("CTHULHU ETERNAL | Ready")
if (typeof Babele !== 'undefined') {
console.info("CTHULHU ETERNAL | Babele detected, setting up translations")
Babele.get().setSystemTranslationsDir("compendiums");
}
if (game.user.isGM) {
ClassCounter.registerUsageCount("fvtt-cthulhu-eternal", {})
}
preLocalizeConfig()
if (game.user.isGM && game.i18n.lang === 'fr' && !game.modules.find(m => m.id == "babele")) {
ChatMessage.create({
user: game.user.id,
whisper: [game.user.id],
content: `<div ><span class="">
<strong>ATTENTION ! Français détecte, mais le module Babele n'est pas installé !<br>Installez Babele pour bénéficier de la traduction des compendiums`
})
}
})
Hooks.on("renderChatMessageHTML", (message, html, data) => {