feat(i18n): i18nize everything
This commit is contained in:
@@ -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()"
|
||||
/>
|
||||
|
||||
@@ -30,19 +30,19 @@ defineOptions({ render: () => null });
|
||||
<template>
|
||||
<NumberInput
|
||||
:model-value="now.getMonth() + 1"
|
||||
title="Month"
|
||||
:title="$t('settings.clock.date.month')"
|
||||
:x="1 * 16 - 1"
|
||||
:disabled="true"
|
||||
/>
|
||||
<NumberInput
|
||||
:model-value="now.getDate()"
|
||||
title="Day"
|
||||
:title="$t('settings.clock.date.day')"
|
||||
:x="5 * 16 - 1"
|
||||
:disabled="true"
|
||||
/>
|
||||
<NumberInput
|
||||
:model-value="now.getFullYear()"
|
||||
title="Year"
|
||||
:title="$t('settings.clock.date.year')"
|
||||
:digits="4"
|
||||
:x="9 * 16 - 1"
|
||||
:disabled="true"
|
||||
@@ -50,8 +50,8 @@ defineOptions({ render: () => null });
|
||||
|
||||
<CommonButtons
|
||||
:y-offset="0"
|
||||
b-label="Cancel"
|
||||
a-label="Confirm"
|
||||
:b-label="$t('common.cancel')"
|
||||
:a-label="$t('common.confirm')"
|
||||
@activate-b="handleCancel"
|
||||
@activate-a="handleConfirm"
|
||||
/>
|
||||
|
||||
@@ -32,21 +32,21 @@ defineOptions({ render: () => null });
|
||||
<template>
|
||||
<NumberInput
|
||||
:model-value="now.getHours()"
|
||||
title="Hour"
|
||||
:title="$t('settings.clock.time.hour')"
|
||||
:x="4 * 16 - 1"
|
||||
:disabled="true"
|
||||
/>
|
||||
<NumberInput
|
||||
:model-value="now.getMinutes()"
|
||||
title="Minute"
|
||||
:title="$t('settings.clock.time.minute')"
|
||||
:x="9 * 16 - 1"
|
||||
:disabled="true"
|
||||
/>
|
||||
|
||||
<CommonButtons
|
||||
:y-offset="0"
|
||||
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