mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-15 05:36:11 +01:00
feat: client side game strings
This commit is contained in:
1 parent
2d282a3261
commit
f5f3f70e35
7 files changed
+60
-13
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user