[+] i18n for matching

pull/100/head
Azalea 2025-01-03 17:24:40 -05:00
parent 9ea0dcb5a7
commit 7539d75ddb
3 changed files with 16 additions and 4 deletions

View File

@ -60,7 +60,7 @@ import { t } from "../../libs/i18n.js";
<div>
<div>
<h2>{t('userbox.header.matching')}</h2>
<p>Choose the matching server you want to use.</p>
<p>{t('userbox.matching.select.sub')}</p>
</div>
<div class="options">
<!-- Selectable options -->
@ -78,7 +78,7 @@ import { t } from "../../libs/i18n.js";
<div class="divider"></div>
<div class="coop">
<span>Collaborators</span>
<span>{t('userbox.matching.option.collab')}</span>
<div>
{#each option.coop as coop}
<span>{coop}</span>
@ -93,8 +93,8 @@ import { t } from "../../libs/i18n.js";
role="button" tabindex="0" on:keypress={e => e.key === 'Enter' && clickCustom()}
class:selected={custom}>
<span class="name">Custom</span>
<p class="notice custom">Enter your own URL</p>
<span class="name">{t('userbox.matching.custom.name')}</span>
<p class="notice custom">{t('userbox.matching.custom.sub')}</p>
</div>
</div>
</div>

View File

@ -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.',

View File

@ -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': '将 ChuniLumi 或更高版本)的游戏文件夹拖放到下方区域,以显示带有名牌和头像的 UserBox。所有文件都在浏览器中处理。',
'userbox.new.setup.processing_file': '正在处理文件',