Files
Enterprise-Knowledge-Base/frontend/src/components/upload-mask.vue
T
wizardchen 59f3d22169 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.
2025-11-13 19:34:33 +08:00

43 lines
1001 B
Vue

<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
</script>
<template>
<div class="mask">
<img class="upload-mask-img" src="@/assets/img/upload-mask.svg" alt="">
<span class="drag-txt">{{ $t('file.upload') }}</span>
<span class="drag-type-txt">{{ $t('knowledgeBase.pdfDocFormat') }}</span>
<span class="drag-type-txt">{{ $t('knowledgeBase.textMarkdownFormat') }}</span>
</div>
</template>
<style scoped lang="less">
.mask{
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
}
.drag-txt {
color: #07c05f;
font-family: "PingFang SC";
font-size: 24px;
font-weight: 600;
line-height: 26px;
display: inline-block;
margin: 12px 0 16px 0;
}
.drag-type-txt {
width: 217px;
color: #00000066;
text-align: center;
font-family: "PingFang SC";
font-size: 12px;
font-weight: 400;
}
.upload-img{
width: 162px;
height: 162px;
}
</style>