# holoweb-sdk **Repository Path**: linxing_3/holoweb-sdk ## Basic Information - **Project Name**: holoweb-sdk - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-01 - **Last Updated**: 2026-06-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # holoview-web ## 介绍 Holoview Web 端 SDK ## 打包教程 1. cd holoview-sdk 2. pnpm i 3. pnpm run build ## 引用插件 ### 添加依赖库 ``` "dependencies": { "@element-plus/icons-vue": "^2.3.1", "axios": "^1.7.2", "crypto-js": "^4.2.0", "element-plus": "^2.3.4", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", "uuid": "^10.0.0", "vue": "^3.2.31", "holoview-sdk": "git+https://gitee.com/holoview_1/holoview-sdk.git#1.0.0+1", "vue-i18n": "10.0.0-beta.5", "@vueuse/core": "^10.6.1" }, "devDependencies": { "@types/node": "^20.14.6", "@vitejs/plugin-vue": "^5.0.4", "sass": "^1.77.6", "typescript": "^5.4.5", "unplugin-vue-macros": "^1.7.2", "vite": "^5.2.10", "vite-plugin-css-injected-by-js": "^3.5.1", "vite-plugin-dts": "1.4.1", "vite-plugin-svg-icons": "^2.0.1", "vue-tsc": "^2.0.6" } ``` ### 将 sdk 的多语言配置数据添加到主项目的 i18n 配置中 添加src/languages/index.ts文件,如果已经有可以直接使用已有文件 ``` // i18n.js import { createI18n } from "vue-i18n"; import { HoloLocate } from "holoview-sdk"; const messages = { en: { title: "示例", }, zh: { title: "示例", }, // 更多语言... }; const i18n = createI18n({ locale: "zh", // 设置默认语言 fallbackLocale: "zh", // 设置后备语言 messages: { zh: { ...messages.zh, ...(HoloLocate.zh || {}) }, en: { ...messages.en, ...(HoloLocate.en || {}) }, }, // 语言环境信息 }); export { messages }; export default i18n; ```