From 8ac9a28992070edf5de5a6a5a4ed24eabefa003d Mon Sep 17 00:00:00 2001 From: haoxiuwen Date: Tue, 2 Jan 2024 16:38:34 +0800 Subject: [PATCH] modify --- docs/.vuepress/navbar/index.ts | 26 +++++++++---------- docs/document/web/message_translation.md | 4 +-- .../chatroomuikit/web/roomuikit_quickstart.md | 4 +-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/.vuepress/navbar/index.ts b/docs/.vuepress/navbar/index.ts index 25c657651..cc98e7e0f 100644 --- a/docs/.vuepress/navbar/index.ts +++ b/docs/.vuepress/navbar/index.ts @@ -206,19 +206,19 @@ export const zhNavbar = navbar([ text: "即时推送", link: "/push/push_overview.html", }, - { - text: "私有部署", - children: [ - { - text: "即时通讯", - link: "/private/im/uc_deploy.html", - }, - { - text: "音视频", - link: "/private/media/common_introduction.html", - }, - ], - }, + // { + // text: "私有部署", + // children: [ + // { + // text: "即时通讯", + // link: "/private/im/uc_deploy.html", + // }, + // { + // text: "音视频", + // link: "/private/media/common_introduction.html", + // }, + // ], + // }, { text: "历史版本", link: "https://docs-im.easemob.com/ccim/intro" }, { text: "文档“捉虫”活动", link: "https://www.imgeek.org/article/825360944" }, ]); diff --git a/docs/document/web/message_translation.md b/docs/document/web/message_translation.md index eed726178..7b3839146 100644 --- a/docs/document/web/message_translation.md +++ b/docs/document/web/message_translation.md @@ -38,7 +38,7 @@ conn.getSupportedLanguages().then(res => console.log(res)) 接收方调用 `translateMessage` 将接收到的消息翻译成目标语言。示例代码如下: ```javascript -conn.translateMessage('hello', ['zh']).then(res => console.log(res)) +conn.translateMessage('hello', ['zh-Hans']).then(res => console.log(res)) ``` ### 自动翻译 @@ -54,7 +54,7 @@ let option = { type: 'txt', to: 'userId', msg: 'hello', - msgConfig:{ languages: ['zh'] } // 设置目标语言。 + msgConfig:{ languages: ['zh-Hans'] } // 设置目标语言。 } let msg = WebIM.message.create(option); conn.send(msg) diff --git a/docs/uikit/chatroomuikit/web/roomuikit_quickstart.md b/docs/uikit/chatroomuikit/web/roomuikit_quickstart.md index 5b91fa5cb..723db8be7 100644 --- a/docs/uikit/chatroomuikit/web/roomuikit_quickstart.md +++ b/docs/uikit/chatroomuikit/web/roomuikit_quickstart.md @@ -77,8 +77,8 @@ import { useClient, rootStore, ChatroomMember, -} from "agora-chat-uikit"; -import "agora-chat-uikit/style.css"; +} from "easemob-chat-uikit"; +import "easemob-chat-uikit/style.css"; const ChatroomApp = observer(() => { const client = useClient();