feat(i18n): i18nize everything

This commit is contained in:
2026-01-30 22:58:07 +01:00
parent 861f76c55a
commit 8e7895ae59
16 changed files with 142 additions and 78 deletions

View File

@@ -87,7 +87,8 @@ onRender((ctx) => {
ctx.font = "10px NDS10";
ctx.textBaseline = "top";
ctx.fillStyle = "#010101";
const { actualBoundingBoxRight: textWidth } = ctx.measureText("View All");
const viewAllText = $t("settings.clock.achievements.viewAll");
const { actualBoundingBoxRight: textWidth } = ctx.measureText(viewAllText);
const totalWidth = achievementAssets.X.rect.width + GAP + textWidth;
const left = Math.ceil(
@@ -99,7 +100,7 @@ onRender((ctx) => {
achievementAssets.X.draw(ctx, left, 7);
fillTextHCentered(
ctx,
"View All",
viewAllText,
left + achievementAssets.X.rect.width + GAP,
7,
textWidth,
@@ -110,7 +111,7 @@ onRender((ctx) => {
<template>
<NumberInput
:model-value="achievements.achievements.length"
title="Obtained"
:title="$t('settings.clock.achievements.obtained')"
:x="4 * 16 - 1"
:selected="achievements.allObtained"
:disabled="true"
@@ -118,7 +119,7 @@ onRender((ctx) => {
<NumberInput
:model-value="ACHIEVEMENTS.length"
title="Total"
:title="$t('settings.clock.achievements.total')"
:x="9 * 16 - 1"
:selected="achievements.allObtained"
:disabled="true"
@@ -126,8 +127,8 @@ onRender((ctx) => {
<CommonButtons
:y-offset="confirmationModal.buttonsYOffset"
b-label="Cancel"
a-label="Reset"
:b-label="$t('common.cancel')"
:a-label="$t('common.reset')"
@activate-b="handleCancel()"
@activate-a="handleReset()"
/>