update menu-ui-handler locales use

This commit is contained in:
fabske0 2025-08-13 18:46:30 +02:00
parent 81a4e98a11
commit a97fcab678
2 changed files with 3 additions and 2 deletions

View File

@ -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 },
);

View File

@ -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 = {