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:
@@ -7,10 +7,13 @@ 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");
|
||||
|
||||
Reference in New Issue
Block a user