refactor: 统一多语言key的组件命名格式为短横线分隔

根据i18n规范,将所有组件相关的多语言key从驼峰式改为短横线分隔格式,同步更新文档中的示例说明。
This commit is contained in:
2026-06-30 10:28:36 +08:00
parent e6d47a3d78
commit 55a5a68517
19 changed files with 100 additions and 100 deletions

View File

@@ -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>

View File

@@ -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>