feat(i18n): i18nize everything
This commit is contained in:
@@ -35,7 +35,10 @@ const handleConfirm = () => {
|
||||
|
||||
const showConfirmation = () => {
|
||||
confirmationModal.open({
|
||||
text: `Rendering mode set to ${mode === "3d" ? "3D" : "2D"}`,
|
||||
text:
|
||||
mode === "3d"
|
||||
? $t("settings.options.startUp.confirmation3d")
|
||||
: $t("settings.options.startUp.confirmation2d"),
|
||||
onClosed: () => {
|
||||
store.closeSubMenu();
|
||||
},
|
||||
@@ -75,21 +78,20 @@ onRender((ctx) => {
|
||||
fillImageTextHCentered(ctx, logo, title, 0, 4, buttonWidth, 4);
|
||||
|
||||
ctx.fillStyle = "#282828";
|
||||
const text =
|
||||
"The Main Menu will appear\nautomatically when you turn\nthe power on.";
|
||||
const text = $t("settings.options.startUp.autoStart");
|
||||
fillTextHCenteredMultiline(ctx, text, 0, y, buttonWidth, 15);
|
||||
|
||||
ctx.restore();
|
||||
};
|
||||
|
||||
drawButton(
|
||||
"3D Mode",
|
||||
$t("settings.options.startUp.3dMode"),
|
||||
renderingModeAssets._3dMode,
|
||||
32,
|
||||
selected.value === "_3dMode",
|
||||
);
|
||||
drawButton(
|
||||
"2D Mode",
|
||||
$t("settings.options.startUp.2dMode"),
|
||||
renderingModeAssets._2dMode,
|
||||
96,
|
||||
selected.value === "_2dMode",
|
||||
@@ -100,8 +102,8 @@ onRender((ctx) => {
|
||||
<template>
|
||||
<CommonButtons
|
||||
:y-offset="confirmationModal.buttonsYOffset"
|
||||
b-label="Cancel"
|
||||
a-label="Confirm"
|
||||
:b-label="$t('common.cancel')"
|
||||
:a-label="$t('common.confirm')"
|
||||
@activate-b="handleCancel"
|
||||
@activate-a="handleConfirm"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user