Skip to content

Commit

Permalink
Merge pull request #407 from LordCracken/master
Browse files Browse the repository at this point in the history
update dnd4e system key
  • Loading branch information
mclemente authored Feb 17, 2025
2 parents df2c79c + 89ce3a0 commit b48c78c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/module/providers/dnd4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ export default class dnd4eLanguageProvider extends LanguageProvider {
};

addToConfig(key, lang) {
CONFIG.DND4EBETA.spoken[key] = lang;
CONFIG.DND4E.spoken[key] = lang;
}

removeFromConfig(key) {
delete CONFIG.DND4EBETA.spoken[key];
delete CONFIG.DND4E.spoken[key];
}

async getLanguages() {
const langs = {};
if (this.replaceLanguages) {
CONFIG.DND4EBETA.spoken = {};
CONFIG.DND4E.spoken = {};
}
const languagesSetting = game.settings.get("polyglot", "Languages");
for (let lang in CONFIG.DND4EBETA.spoken) {
for (let lang in CONFIG.DND4E.spoken) {
langs[lang] = {
label: CONFIG.DND4EBETA.spoken[lang],
label: CONFIG.DND4E.spoken[lang],
font: languagesSetting[lang]?.font || this.languages[lang]?.font || this.defaultFont,
rng: languagesSetting[lang]?.rng ?? "default",
};
Expand Down

0 comments on commit b48c78c

Please sign in to comment.