Machine translation for ES

some minors fixes
This commit is contained in:
Vlyan
2021-01-12 13:46:04 +01:00
parent f9477d8a97
commit d9c33fe4f4
5 changed files with 107 additions and 101 deletions

View File

@@ -186,9 +186,12 @@ Hooks.once("init", async function () {
/* ------------------------------------ */
Hooks.once("setup", function () {
// Do anything after initialization but before ready
// Babele
// Embed Babele compendiums
/* eslint-disable no-undef */
if (typeof Babele !== "undefined" && Babele.get().modules.every((module) => module.lang !== "fr")) {
if (
typeof Babele !== "undefined" &&
Babele.get().modules.every((module) => module.lang !== "fr" || module.module !== "l5r5e-dev")
) {
Babele.get().register({
module: "../systems/l5r5e", // babele only accept modules, so... well :D
lang: "fr",