更新前端i18n

This commit is contained in:
2026-03-20 22:18:00 +08:00
parent 91262de77d
commit 1988502f01
8 changed files with 70 additions and 25 deletions

View File

@@ -653,12 +653,12 @@
{#if loadError}
<div class="error-toast">
<span>加载失败</span>
<span>{m.load_failed()}</span>
<button
onclick={() => {
loadError = false;
loadStage = 'thumbnail';
}}>重试</button
}}>{m.retry()}</button
>
</div>
{/if}
@@ -687,7 +687,7 @@
<path d="M11 8v6" />
<path d="M8 11h6" />
</svg>
<span>查看原图</span>
<span>{m.view_original()}</span>
</button>
{/if}
@@ -702,11 +702,11 @@
{#if photo && !photo.mimeType?.startsWith('video/')}
<span class="quality-indicator">
{#if loadStage === 'full'}
原图
{m.original()}
{:else if loadStage === 'preview'}
高清
{m.high_quality()}
{:else}
缩略
{m.thumbnail()}
{/if}
</span>
{/if}
@@ -717,7 +717,7 @@
class="nav-button prev"
onclick={goToPrevious}
disabled={!hasPrev || isNavigating}
aria-label="Previous photo"
aria-label={m.previous_photo()}
type="button"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
@@ -781,7 +781,7 @@
class="nav-button next"
onclick={goToNext}
disabled={!hasNext || isNavigating}
aria-label="Next photo"
aria-label={m.next_photo()}
type="button"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
@@ -797,7 +797,7 @@
onclick={zoomOut}
disabled={targetScaleRef <= minScale + 0.01}
type="button"
aria-label="缩小"
aria-label={m.zoom_out()}
>
<svg
viewBox="0 0 24 24"
@@ -817,7 +817,7 @@
onclick={zoomIn}
disabled={targetScaleRef >= maxScale - 0.01}
type="button"
aria-label="放大"
aria-label={m.zoom_in()}
>
<svg
viewBox="0 0 24 24"
@@ -833,7 +833,7 @@
<path d="M8 11h6" />
</svg>
</button>
<button onclick={resetZoom} type="button" aria-label="重置">
<button onclick={resetZoom} type="button" aria-label={m.reset()}>
<svg
viewBox="0 0 24 24"
fill="none"
@@ -868,10 +868,10 @@
<!-- 快捷键提示 -->
<div class="shortcut-hints">
<span>🖱️ 双击放大</span>
<span>🤏 捏合缩放</span>
<span>⌨️ +/ 缩放</span>
<span>⌨️ 0 重置</span>
<span>{m.double_click_zoom()}</span>
<span>{m.pinch_zoom()}</span>
<span>{m.keyboard_zoom()}</span>
<span>{m.reset_zoom()}</span>
</div>
{/if}
</div>