Skip to content

Commit

Permalink
Merge pull request #569 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify SDK & UIKit Docs
  • Loading branch information
haoxiuwen authored Jan 2, 2024
2 parents 95e7955 + 8ac9a28 commit ba722f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions docs/.vuepress/navbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]);
4 changes: 2 additions & 2 deletions docs/document/web/message_translation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
```

### 自动翻译
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions docs/uikit/chatroomuikit/web/roomuikit_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ba722f1

Please sign in to comment.