From ae639af5a2126dfb7de2da18d2a33df731a84f19 Mon Sep 17 00:00:00 2001 From: Matheus Clemente Date: Thu, 25 Jan 2024 03:42:27 -0300 Subject: [PATCH] Update pf2e.js Fix #350. --- src/module/providers/pf2e.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/module/providers/pf2e.js b/src/module/providers/pf2e.js index db215e1..bc59d72 100644 --- a/src/module/providers/pf2e.js +++ b/src/module/providers/pf2e.js @@ -236,6 +236,11 @@ export default class pf2eLanguageProvider extends LanguageProvider { async getLanguages() { const customSystemLanguages = game.settings.get("pf2e", "homebrew.languages"); + if (this.replaceLanguages) { + CONFIG.PF2E.languages = { + common: "PF2E.Actor.Creature.Language.common" + }; + } const languagesSetting = game.settings.get("polyglot", "Languages"); const langs = {}; const systemLanguages = foundry.utils.deepClone(CONFIG.PF2E.languages);