feat: Integrate vue-i18n for multilingual support across components

- Added vue-i18n integration to various components for dynamic text translation.
- Updated text placeholders, button labels, and error messages to utilize translation functions.
- Enhanced user experience by providing localized content in the Knowledge Base, chat components, and settings.
- Removed hardcoded strings and replaced them with translation keys for better maintainability and scalability.
This commit is contained in:
wizardchen
2025-11-13 19:34:33 +08:00
parent ae58801baf
commit 59f3d22169
62 changed files with 3967 additions and 5348 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
</script>
<template>
<div class="empty">
<img class="empty-img" src="@/assets/img/upload.svg" alt="">
<span class="empty-txt">知识为空,拖放上传</span>
<span class="empty-type-txt">pdf、doc 格式文件,不超过10M</span>
<span class="empty-type-txt">text、markdown格式文件,不超过200K</span>
<span class="empty-txt">{{ $t('knowledgeBase.emptyKnowledgeDragDrop') }}</span>
<span class="empty-type-txt">{{ $t('knowledgeBase.pdfDocFormat') }}</span>
<span class="empty-type-txt">{{ $t('knowledgeBase.textMarkdownFormat') }}</span>
</div>
</template>
<style scoped lang="less">