mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-17 12:59:25 +02:00
update menu-ui-handler locales use
This commit is contained in:
parent
81a4e98a11
commit
a97fcab678
@ -17,6 +17,7 @@ import { addWindow, WindowVariant } from "#ui/ui-theme";
|
||||
import { fixedInt, isLocal, sessionIdKey } from "#utils/common";
|
||||
import { getCookie } from "#utils/cookies";
|
||||
import { getEnumValues } from "#utils/enums";
|
||||
import { toCamelCase } from "#utils/strings";
|
||||
import { isBeta } from "#utils/utility-vars";
|
||||
import i18next from "i18next";
|
||||
|
||||
@ -138,7 +139,7 @@ export class MenuUiHandler extends MessageUiHandler {
|
||||
this.optionSelectText = addTextObject(
|
||||
0,
|
||||
0,
|
||||
this.menuOptions.map(o => `${i18next.t(`menuUiHandler:${MenuOptions[o]}`)}`).join("\n"),
|
||||
this.menuOptions.map(o => `${i18next.t(`menuUiHandler:${toCamelCase(MenuOptions[o])}`)}`).join("\n"),
|
||||
TextStyle.WINDOW,
|
||||
{ maxLines: this.menuOptions.length },
|
||||
);
|
||||
|
@ -2263,7 +2263,7 @@ export class StarterSelectUiHandler extends MessageUiHandler {
|
||||
});
|
||||
};
|
||||
options.push({
|
||||
label: i18next.t("menuUiHandler:POKEDEX"),
|
||||
label: i18next.t("menuUiHandler:pokedex"),
|
||||
handler: () => {
|
||||
ui.setMode(UiMode.STARTER_SELECT).then(() => {
|
||||
const attributes = {
|
||||
|
Loading…
Reference in New Issue
Block a user