feat: 新增多语言国际化页面配置,修复部分页面硬编码文案
1. 新增了zh-cn和en-us两套语言下的大量页面国际化配置文件,覆盖商品、订单、会员、营销活动等多个业务模块 2. 修复了分销页面、VR页面、支付页面、商品不存在页面的硬编码提示文案,替换为国际化调用 3. 删除了原有的i18n检查脚本文件
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<!-- 搜索入口按钮(浮动在消息区右上角) -->
|
||||
<view class="search-entrance" :class="{ 'icon-only': !showLabel }" v-if="!showSearchBar" @click="toggleSearch">
|
||||
<text class="iconfont icon-sousuo search-entrance-icon"></text>
|
||||
<text class="search-entrance-label" v-if="showLabel">{{ $lang('common.placeholder.search') }}</text>
|
||||
<text class="search-entrance-label" v-if="showLabel">{{ $lang('searchEntrance') }}</text>
|
||||
</view>
|
||||
|
||||
<!-- 搜索浮条 -->
|
||||
@@ -14,7 +14,7 @@
|
||||
<input
|
||||
class="search-bar-input"
|
||||
v-model="searchKeyword"
|
||||
:placeholder="$lang('common.placeholder.search')"
|
||||
:placeholder="$lang('searchPlaceholder')"
|
||||
:focus="true"
|
||||
@input="onSearchInput"
|
||||
@confirm="doSearch" />
|
||||
@@ -27,11 +27,11 @@
|
||||
<text class="search-bar-nav" :class="{ disabled: searchResultIndex >= searchResults.length - 1 }" @click="scrollToNextResult">▼</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="search-bar-close" @click="closeSearch">{{ $lang('goods.list.search_close') }}</text>
|
||||
<text class="search-bar-close" @click="closeSearch">{{ $lang('searchClose') }}</text>
|
||||
</view>
|
||||
<view class="search-bar-status" v-if="searched && searchKeyword && searchResults.length === 0">
|
||||
<text class="search-bar-status-icon">!</text>
|
||||
<text class="search-bar-status-text">{{ $lang('common.list.no_match_result') }}</text>
|
||||
<text class="search-bar-status-text">{{ $lang('noMatchResult') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -43,7 +43,7 @@
|
||||
*
|
||||
* Props:
|
||||
* messages: Array - 原始消息列表
|
||||
* showLabel: Boolean - (默认 true) 是否显示$lang("diy.diy-search.l31.t0")文字;设为 false 则只显示搜索图标
|
||||
* showLabel: Boolean - (默认 true) 是否显示"搜索"文字;设为 false 则只显示搜索图标
|
||||
*
|
||||
* Events:
|
||||
* scroll-to: (messageKey: string) => void - 请求父组件滚动到指定消息
|
||||
@@ -187,7 +187,7 @@ export default {
|
||||
if (idx >= 0) {
|
||||
this.scrollToSearchResult(idx)
|
||||
} else {
|
||||
uni.showToast({ title: this.$lang('goods.list.search_at_top'), icon: 'none' })
|
||||
uni.showToast({ title: this.$lang('searchAtTop'), icon: 'none' })
|
||||
}
|
||||
},
|
||||
|
||||
@@ -196,7 +196,7 @@ export default {
|
||||
if (idx < this.searchResults.length) {
|
||||
this.scrollToSearchResult(idx)
|
||||
} else {
|
||||
uni.showToast({ title: this.$lang('goods.list.search_at_bottom'), icon: 'none' })
|
||||
uni.showToast({ title: this.$lang('searchAtBottom'), icon: 'none' })
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user