feat: 首页i18n适配
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m3s

This commit is contained in:
2025-11-04 14:28:45 +08:00
parent 128bdf5a16
commit e7450005ab
4 changed files with 16 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<template> <template>
<section class="homepage-section"> <section class="homepage-section">
<h2>推荐产品</h2> <h2>{{ $t('homepage.recommended-products') }}</h2>
<p> <p>
探索我们的精选产品满足您的各种需求无论是创新技术还是经典设计我们都为您提供优质选择 {{ $t('homepage.recommended-products-desc') }}
</p> </p>
<div v-if="!pending"> <div v-if="!pending">
<el-carousel <el-carousel

View File

@ -1,7 +1,7 @@
<template> <template>
<section class="homepage-section"> <section class="homepage-section">
<h2>推荐解决方案</h2> <h2>{{ $t('homepage.recommended-solutions') }}</h2>
<p>了解我们的定制解决方案帮助您优化业务流程提高效率</p> <p>{{ $t('homepage.recommended-solutions-desc') }}</p>
<div v-if="!pending"> <div v-if="!pending">
<el-carousel <el-carousel
class="recommend-carousel" class="recommend-carousel"

View File

@ -94,5 +94,11 @@
"title": "Menu", "title": "Menu",
"navigation": "Navigation", "navigation": "Navigation",
"utilities": "Utilities" "utilities": "Utilities"
},
"homepage": {
"recommended-products": "Recommended Products",
"recommended-products-desc": "Explore our curated selection of products to meet your diverse needs. Whether it's innovative technology or classic designs, we offer quality choices for you.",
"recommended-solutions": "Recommended Solutions",
"recommended-solutions-desc": "Learn about our tailored solutions designed to help your business thrive in a competitive market."
} }
} }

View File

@ -93,5 +93,11 @@
"title": "菜单", "title": "菜单",
"navigation": "站内导航", "navigation": "站内导航",
"utilities": "实用工具" "utilities": "实用工具"
},
"homepage": {
"recommended-products": "推荐产品",
"recommended-products-desc": "探索我们的精选产品,满足您的各种需求。无论是创新技术还是经典设计,我们都为您提供优质选择。",
"recommended-solutions": "推荐解决方案",
"recommended-solutions-desc": "了解我们的定制解决方案,帮助您优化业务流程,提高效率。"
} }
} }