feat: client side game strings

This commit is contained in:
TrèsAbhi committed 2026-01-13 13:30:09 -06:00
1 parent 2d282a3261
commit f5f3f70e35
7 files changed
+60 -13

No files matched your search

+4 -3
View File
@@ -83,9 +83,10 @@ export abstract class AbstractAPI {
> = {};
protected abstract _groupedGameStrings(
locale: string,
group: string
group: string,
prefix: boolean
): Promise<Record<string, string>>;
async groupedGameStrings(locale: string, group: string) {
async groupedGameStrings(locale: string, group: string, prefix = true) {
this.assertLocale(locale);
if (this._groupedGameStringsCache[locale] === undefined) {
@@ -94,7 +95,7 @@ export abstract class AbstractAPI {
if (this._groupedGameStringsCache[locale][group] === undefined) {
this._groupedGameStringsCache[locale][group] =
await this._groupedGameStrings(locale, group);
await this._groupedGameStrings(locale, group, prefix);
}
return this._groupedGameStringsCache[locale][group];