refactor: 统一多语言key的组件命名格式为短横线分隔
根据i18n规范,将所有组件相关的多语言key从驼峰式改为短横线分隔格式,同步更新文档中的示例说明。
This commit is contained in:
@@ -57,10 +57,10 @@
|
||||
<view v-else-if="message.contentType == 'order'"><ns-chat-order :isCanSend="false" :orderId="message.order_id"></ns-chat-order></view>
|
||||
|
||||
<view class="no-connect-box" v-if="message.contentType == 'noline'">
|
||||
<view class="no-connect">{{ $lang('components.chatMessage.customerOffline') }}</view>
|
||||
<view class="no-connect">{{ $lang('components.chat-message.customerOffline') }}</view>
|
||||
</view>
|
||||
<view class="no-connect-box" v-if="message.contentType == 'online'">
|
||||
<view class="no-connect">{{ $lang('components.chatMessage.customerOnline') }}</view>
|
||||
<view class="no-connect">{{ $lang('components.chat-message.customerOnline') }}</view>
|
||||
</view>
|
||||
<uni-popup ref="imgPopup" type="center">
|
||||
<view class="imagePop">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<text class="goods-price-sign color-base-text">¥</text>
|
||||
<text class="color-base-text">{{ goodsInfo.price }}</text>
|
||||
</view>
|
||||
<view class="goods-option font-size-goods-tag disabled">{{ $lang('components.chatGoods.sent') }}</view>
|
||||
<view class="goods-option font-size-goods-tag disabled">{{ $lang('components.ns-chat-goods.sent') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@
|
||||
<text class="goods-price-sign color-base-text">¥</text>
|
||||
<text class="color-base-text">{{ goodsDetail.price }}</text>
|
||||
</view>
|
||||
<view class="goods-option font-size-goods-tag color-base-bg" @click="sendMsg('goods')">{{ $lang('components.chatGoods.send') }}</view>
|
||||
<view class="goods-option font-size-goods-tag color-base-bg" @click="sendMsg('goods')">{{ $lang('components.ns-chat-goods.send') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
<view class="goods-item">
|
||||
<view class="title">{{ isEnEnv ? goodsInfo.en_goods_name : goodsInfo.goods_name }}</view>
|
||||
<view class="goods-sku">
|
||||
{{ $lang('components.chatReceiveGoods.stockPrefix') }}{{ goodsInfo.stock }}
|
||||
<text>{{ $lang('components.chatReceiveGoods.salesPrefix') }}{{ goodsInfo.sale_num }}</text>
|
||||
{{ $lang('components.ns-chat-receiveGoods.stockPrefix') }}{{ goodsInfo.stock }}
|
||||
<text>{{ $lang('components.ns-chat-receiveGoods.salesPrefix') }}{{ goodsInfo.sale_num }}</text>
|
||||
</view>
|
||||
<view class="goods-price">
|
||||
<view class="price color-base-text">
|
||||
@@ -14,7 +14,7 @@
|
||||
<text class="price-num">{{ goodsInfo.price }}</text>
|
||||
</view>
|
||||
<view class="see-shop color-base-text" @click="go_shop()">
|
||||
{{ $lang('components.chatReceiveGoods.viewGoods') }}
|
||||
{{ $lang('components.ns-chat-receiveGoods.viewGoods') }}
|
||||
<text class="iconfont icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<block v-if="type == 'point'">
|
||||
<block v-if="goodsDetail.type == 1">
|
||||
<view class="price-wrap">
|
||||
<text class="price price-color font-size-toolbar">{{ $lang('components.nsGoodsSku.pointSuffix', { point: goodsDetail.point }) }}</text>
|
||||
<text class="price price-color font-size-toolbar">{{ $lang('components.ns-goods-sku.pointSuffix', { point: goodsDetail.point }) }}</text>
|
||||
<block v-if="goodsDetail.exchange_price != '0.00' && goodsDetail.pay_type > 0">
|
||||
<text class="unit price-color font-size-tag">+</text>
|
||||
<text class="price price-color font-size-toolbar price-font">{{ $lang('common.currencySymbol') }}{{ goodsDetail.exchange_price }}</text>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
autoplay
|
||||
class="video-player"
|
||||
></video>
|
||||
<view v-else class="video-error">{{ $lang('components.videoPlayerPopup.videoUrlNotExist') }}</view>
|
||||
<view v-else class="video-error">{{ $lang('components.ns-video-player-popup.videoUrlNotExist') }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
<uni-popup type="bottom" ref="regionsRef">
|
||||
<view class="regions-picker-container">
|
||||
<view class="picker-header">
|
||||
<view class="picker-action cancel" @click="$refs.regionsRef.close()">{{ $lang('components.pickRegions.cancel') }}</view>
|
||||
<view class="picker-action confirm" @click="confirmRegions">{{ $lang('components.pickRegions.confirm') }}</view>
|
||||
<view class="picker-action cancel" @click="$refs.regionsRef.close()">{{ $lang('components.pick-regions.cancel') }}</view>
|
||||
<view class="picker-action confirm" @click="confirmRegions">{{ $lang('components.pick-regions.confirm') }}</view>
|
||||
</view>
|
||||
<picker-view :value="multiIndex" @change="pickerViewColumnChange" class="picker-view">
|
||||
<picker-view-column v-if="multiArray[0]">
|
||||
|
||||
Reference in New Issue
Block a user