refactor: 将项目内硬编码文本替换为多语言调用
统一替换所有页面和组件中的硬编码字符串为 $lang 多语言方法调用,提升项目国际化适配能力
This commit is contained in:
@@ -91,12 +91,12 @@
|
||||
<!-- 查看更多(仅非滚动模式显示) -->
|
||||
<view class="view-more" v-if="viewMore.support && viewMore.control && list.length > 0"
|
||||
:style="viewMoreStyle" @tap.stop="toListPage">
|
||||
<text>{{ viewMore.text || '查看更多' }}</text>
|
||||
<text>{{ viewMore.text || $lang('article.viewMore') }}</text>
|
||||
<uni-icons type="arrowright" size="12" :color="viewMore.color" />
|
||||
</view>
|
||||
</template>
|
||||
<view v-if="list.length === 0 && !loading" class="empty-placeholder">
|
||||
<text class="empty-text">暂无相关文章</text>
|
||||
<text class="empty-text">{{ $lang('article.noRelatedArticles') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user