- 昨天的当天是明天的昨天。 -
-diff --git a/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap b/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap
index 2edcb32e..ea667427 100644
--- a/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap
+++ b/src/ProChat/__test__/__snapshots__/demo.test.tsx.snap
@@ -427,12 +427,7 @@ exports[`
+
## APIs
| Parameter | description | type | default |
diff --git a/src/ProChat/index.md b/src/ProChat/index.md
index 64b26b6d..4d20f4ae 100644
--- a/src/ProChat/index.md
+++ b/src/ProChat/index.md
@@ -118,6 +118,10 @@ useProChat hooks 必须在包裹 `ProChatProvider` 后方可使用。
:::
+## 国际化
+
+
+
## APIs
| 参数 | 说明 | 类型 | 默认值 |
diff --git a/src/ProChat/index.tsx b/src/ProChat/index.tsx
index 3afffbda..803ca80c 100644
--- a/src/ProChat/index.tsx
+++ b/src/ProChat/index.tsx
@@ -1,5 +1,6 @@
export * from '../types/message';
+export { type Locale } from '../locale';
export { ProChat } from './container';
export { ProChatProvider } from './container/Provider';
export { useProChat, type ProChatInstance } from './hooks/useProChat';
diff --git a/src/ProChat/store/selectors/chat.ts b/src/ProChat/store/selectors/chat.ts
index c1dc7308..f250c1e0 100644
--- a/src/ProChat/store/selectors/chat.ts
+++ b/src/ProChat/store/selectors/chat.ts
@@ -75,9 +75,7 @@ export const currentChats = (s: ChatStore): ChatMessage[] => {
export const currentChatsWithGuideMessage = (s: ChatStore): ChatMessage[] => {
const data = currentChats(s);
// TODO: need topic inject
-
const isBrandNewChat = data.length === 0;
-
if (!isBrandNewChat) return data;
const emptyInboxGuideMessage = {
diff --git a/src/locale/index.ts b/src/locale/index.ts
index a8b9526f..30a5c9f2 100644
--- a/src/locale/index.ts
+++ b/src/locale/index.ts
@@ -6,6 +6,7 @@ export type Locale = 'zh-CN' | 'en-US';
const locales = {
'en-US': enUSLocal,
'zh-CN': zhCNLocal,
+ en: enUSLocal,
};
export const gLocaleObject = (glocale: Locale): LocaleProps => {