59f3d22169
- 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.
20 lines
477 B
TypeScript
20 lines
477 B
TypeScript
import { createApp } from "vue";
|
|
import { createPinia } from "pinia";
|
|
import App from "./App.vue";
|
|
import router from "./router";
|
|
import "./assets/fonts.css";
|
|
import TDesign from "tdesign-vue-next";
|
|
// 引入组件库的少量全局样式变量
|
|
import "tdesign-vue-next/es/style/index.css";
|
|
import "@/assets/theme/theme.css";
|
|
import i18n from "./i18n";
|
|
|
|
const app = createApp(App);
|
|
|
|
app.use(TDesign);
|
|
app.use(createPinia());
|
|
app.use(router);
|
|
app.use(i18n);
|
|
|
|
app.mount("#app");
|