Document markup and improve choice tags
This commit is contained in:
@@ -24,11 +24,6 @@ class GameConfigModule extends BaseModule {
|
||||
this.reportProgress(20, 'Loading game configuration');
|
||||
this.config = await this.loadConfig();
|
||||
|
||||
const localization = this.getModule('localization');
|
||||
if (localization && this.config?.locale) {
|
||||
await localization.applyServerLocale(this.config.locale);
|
||||
}
|
||||
|
||||
this.applyDocumentMetadata();
|
||||
document.dispatchEvent(new CustomEvent('game:config', {
|
||||
detail: this.config
|
||||
@@ -88,7 +83,7 @@ class GameConfigModule extends BaseModule {
|
||||
}
|
||||
|
||||
getLocale() {
|
||||
return this.config?.locale || 'en_US';
|
||||
return this.config?.metadata?.language || this.config?.locale || 'en_US';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user