This commit is contained in:
IrkTheImp 2025-06-28 09:23:23 -05:00
parent 27ac324694
commit f9f38814de
2 changed files with 1 additions and 6 deletions

View file

@ -1,6 +1,5 @@
import { DhHomebrew } from '../../data/settings/_module.mjs';
import DhSettingsActionView from './components/settingsActionsView.mjs';
import { defaultRestOptions } from '../../config/generalConfig.mjs';
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
@ -159,10 +158,9 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
}
static async reset() {
//For some reason this doesn't seem to localize any of the strings, so calling a recursive call to localize all strings. ¯\_(ツ)_/¯
const resetSettings = new DhHomebrew();
let localizedSettings = this.localizeObject(resetSettings);
await this.settings.updateSource(localizedSettings);
this.settings.updateSource(localizedSettings);
this.render();
}
@ -175,7 +173,6 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
} else {
if (typeof value === 'string' && value.startsWith('DAGGERHEART.')) {
obj[key] = game.i18n.localize(value);
console.log(obj[key]);
}
}
}

View file

@ -1,5 +1,3 @@
{{log this}}
<fieldset class="left-main-container" style="padding-top: 0; margin-top: 8px;">
<legend class="legend" style="line-height: 2px;">{{localize this.inventory.currency.title}}</legend>