From 7539d75ddb2690c2afb2bfbff30581d3e8a9683f Mon Sep 17 00:00:00 2001
From: Azalea <22280294+hykilpikonna@users.noreply.github.com>
Date: Fri, 3 Jan 2025 17:24:40 -0500
Subject: [PATCH] [+] i18n for matching
---
.../src/components/settings/ChuniMatchingSettings.svelte | 8 ++++----
AquaNet/src/libs/i18n/en_ref.ts | 4 ++++
AquaNet/src/libs/i18n/zh.ts | 8 ++++++++
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte
index 6ceb6a2a..d24b3a34 100644
--- a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte
+++ b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte
@@ -60,7 +60,7 @@ import { t } from "../../libs/i18n.js";
{t('userbox.header.matching')}
-
Choose the matching server you want to use.
+
{t('userbox.matching.select.sub')}
@@ -78,7 +78,7 @@ import { t } from "../../libs/i18n.js";
-
Collaborators
+
{t('userbox.matching.option.collab')}
{#each option.coop as coop}
{coop}
@@ -93,8 +93,8 @@ import { t } from "../../libs/i18n.js";
role="button" tabindex="0" on:keypress={e => e.key === 'Enter' && clickCustom()}
class:selected={custom}>
-
Custom
-
Enter your own URL
+
{t('userbox.matching.custom.name')}
+
{t('userbox.matching.custom.sub')}
diff --git a/AquaNet/src/libs/i18n/en_ref.ts b/AquaNet/src/libs/i18n/en_ref.ts
index 5e79e482..4c16ffdb 100644
--- a/AquaNet/src/libs/i18n/en_ref.ts
+++ b/AquaNet/src/libs/i18n/en_ref.ts
@@ -187,8 +187,12 @@ export const EN_REF_USERBOX = {
'userbox.error.nodata': 'Chuni data not found',
'userbox.matching.select': 'Select Matching Server',
+ 'userbox.matching.select.sub': 'Choose the matching server you want to use.',
'userbox.matching.option.ui': 'Rooms',
'userbox.matching.option.guide': 'Guide',
+ 'userbox.matching.option.collab': 'Collaborators',
+ 'userbox.matching.custom.name': 'Custom',
+ 'userbox.matching.custom.sub': 'Enter your own URL',
'userbox.new.name': 'AquaBox',
'userbox.new.setup': 'Drag and drop your Chuni game folder (Lumi or newer) into the box below to display UserBoxes with their nameplate & avatar. All files are handled in-browser.',
diff --git a/AquaNet/src/libs/i18n/zh.ts b/AquaNet/src/libs/i18n/zh.ts
index 095d65fe..07b6294b 100644
--- a/AquaNet/src/libs/i18n/zh.ts
+++ b/AquaNet/src/libs/i18n/zh.ts
@@ -196,6 +196,14 @@ export const zhUserbox: typeof EN_REF_USERBOX = {
'userbox.preview.url': '图床 URL',
'userbox.error.nodata': '未找到中二数据',
+ 'userbox.matching.select': '选择对战服务器',
+ 'userbox.matching.select.sub': '选择你想加入的跨服全国对战服务器',
+ 'userbox.matching.option.ui': '房间列表',
+ 'userbox.matching.option.guide': '教程',
+ 'userbox.matching.option.collab': '合作伙伴',
+ 'userbox.matching.custom.name': '自定义',
+ 'userbox.matching.custom.sub': '输入其他的匹配 URL',
+
'userbox.new.name': 'AquaBox',
'userbox.new.setup': '将 Chuni(Lumi 或更高版本)的游戏文件夹拖放到下方区域,以显示带有名牌和头像的 UserBox。所有文件都在浏览器中处理。',
'userbox.new.setup.processing_file': '正在处理文件',