refactor: internationalize sample images section title

- Replace hardcoded text with i18n function in HomePage.vue
- Add Chinese translation for 'Click image to try' in zh-CN.json
- Update sample images section title to support multiple languages
This commit is contained in:
jingrow 2025-12-21 20:53:35 +08:00
parent ad43d0f8bb
commit 6dce73f6b4
2 changed files with 2 additions and 10 deletions

View File

@ -1192,13 +1192,5 @@
"URL": "URL",
"Created": "创建时间",
"Last Updated": "最后更新",
"工具文件URL或仓库地址不存在": "工具文件URL或仓库地址不存在",
"正在准备安装...": "正在准备安装...",
"正在下载工具包...": "正在下载工具包...",
"正在安装工具...": "正在安装工具...",
"从Git仓库安装工具功能暂未实现": "从Git仓库安装工具功能暂未实现",
"无法确定安装方式": "无法确定安装方式",
"工具安装成功!": "工具安装成功!",
"工具安装成功": "工具安装成功",
"安装失败": "安装失败"
"Click image to try": "点击图片快速体验"
}

View File

@ -1052,7 +1052,7 @@ onUnmounted(() => {
<!-- 示例图片区块 -->
<div v-if="!uploadedImage" class="sample-images-section">
<p class="sample-images-title">快速体验</p>
<p class="sample-images-title">{{ t('Click image to try') }}</p>
<div class="sample-images-container">
<div
v-for="sample in sampleImages"