[+] Switching games in leaderboard

This commit is contained in:
Azalea
2024-03-14 22:35:36 -04:00
parent 7bbd90ab91
commit 10d19a5392
6 changed files with 46 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
import { EN_REF, type LocalizedMessages } from "./i18n/en_ref";
import { ZH } from "./i18n/zh";
import type { GameName } from "./scoring";
type Lang = 'en' | 'zh'
@@ -22,3 +23,6 @@ export function t(key: keyof LocalizedMessages, variables?: { [index: string]: a
}
return msgs[lang][key]
}
export const GAME_TITLE: { [key in GameName]: string } =
{chu3: t("game.chu3"), mai2: t("game.mai2"), ongeki: t("game.ongeki")}