feat: add and optimize multilingual text resources
- add new language packs for multiple pages and components including category, cart, order, member center, distribution, etc. - add Chinese and English translations for new features and UI text - fix navigation service error message to use multilingual text - update component templates to use dynamic language translation instead of hardcoded text - adjust code indentation and formatting for consistency
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
<view class="oper-wrapper" :style="{ display: sD, top: tp }">
|
||||
<view class="oper">
|
||||
<view class="btn-wrapper" v-if="sO">
|
||||
<view @click="fClose" class="cancel" :style="{ width: bW }"><text>取消</text></view>
|
||||
<view @click="fClose" class="cancel" :style="{ width: bW }"><text>{{ $lang('components.imgCropping.cancel') }}</text></view>
|
||||
<view @click="fSelect" :style="{ width: bW }"><text class="iconfont icon-shangchuan"></text></view>
|
||||
<view @click="fRotate" :style="{ width: bW, display: bD }"><text class="iconfont icon-xuanzhuan"></text></view>
|
||||
<!-- <view @click="fPreview" hover-class="hover" :style="{width: bW}"><text>预览</text></view> -->
|
||||
<view @click="fUpload" :style="{ width: bW }"><text class="upload">上传</text></view>
|
||||
<view @click="fUpload" :style="{ width: bW }"><text class="upload">{{ $lang('components.imgCropping.upload') }}</text></view>
|
||||
</view>
|
||||
<view class="clr-wrapper" v-else>
|
||||
<slider
|
||||
@@ -35,7 +35,7 @@
|
||||
block-color="grey"
|
||||
show-value
|
||||
></slider>
|
||||
<view @click="fPrvUpload" hover-class="hover" :style="{ width: bW }"><text>上传</text></view>
|
||||
<view @click="fPrvUpload" hover-class="hover" :style="{ width: bW }"><text>{{ $lang('components.imgCropping.upload') }}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -209,7 +209,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef MP-ALIPAY
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
title: this.$lang('components.imgCropping.loading'),
|
||||
mask: true
|
||||
});
|
||||
// #endif
|
||||
@@ -232,9 +232,9 @@ export default {
|
||||
style.left = ((this.wW - sW) | 0) / 2 + 'px';
|
||||
} else {
|
||||
uni.showModal({
|
||||
title: '裁剪框的宽或高没有设置',
|
||||
showCancel: false
|
||||
});
|
||||
title: this.$lang('components.imgCropping.cropBoxSizeNotSet'),
|
||||
showCancel: false
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.sS = style;
|
||||
@@ -252,7 +252,7 @@ export default {
|
||||
},
|
||||
fail: () => {
|
||||
this.$util.showToast({
|
||||
title: '请选择正确图片'
|
||||
title: this.$lang('components.imgCropping.pleaseSelectValidImage')
|
||||
});
|
||||
},
|
||||
complete() {
|
||||
@@ -282,7 +282,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef MP-ALIPAY
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
title: this.$lang('components.imgCropping.loading'),
|
||||
mask: true
|
||||
});
|
||||
// #endif
|
||||
@@ -439,7 +439,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef MP-ALIPAY
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
title: this.$lang('components.imgCropping.loading'),
|
||||
mask: true
|
||||
});
|
||||
// #endif
|
||||
@@ -750,7 +750,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef MP-ALIPAY
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
title: this.$lang('components.imgCropping.loading'),
|
||||
mask: true
|
||||
});
|
||||
// #endif
|
||||
@@ -1152,7 +1152,7 @@ export default {
|
||||
// #endif
|
||||
// #ifndef MP-ALIPAY
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
title: this.$lang('components.imgCropping.loading'),
|
||||
mask: true
|
||||
});
|
||||
// #endif
|
||||
|
||||
Reference in New Issue
Block a user