diff --git a/apps/stage-tamagotchi/src/renderer/locales/en.yml b/apps/stage-tamagotchi/src/renderer/locales/en.yml index d079d9ecc..f66b853c7 100644 --- a/apps/stage-tamagotchi/src/renderer/locales/en.yml +++ b/apps/stage-tamagotchi/src/renderer/locales/en.yml @@ -79,6 +79,7 @@ stage: character-name: airi: Airi you: You + core-system: Core System tabs: chat: Chat clothes: Clothes diff --git a/apps/stage-tamagotchi/src/renderer/locales/zh-CN.yml b/apps/stage-tamagotchi/src/renderer/locales/zh-CN.yml index bcd15ddf3..ac3408ac1 100644 --- a/apps/stage-tamagotchi/src/renderer/locales/zh-CN.yml +++ b/apps/stage-tamagotchi/src/renderer/locales/zh-CN.yml @@ -66,3 +66,18 @@ stage: select-a-model: 选择一个模型 select-a-voice: 选择一个声线 waiting: 等待中 + chat: + message: + character-name: + airi: Airi + you: 你 + core-system: 核心系统 + tabs: + chat: 聊天 + clothes: 换装 + custom: 自定义 + operations: + load-models: 加载推理模型 + load-models-status: + loading: 加载中 + ready: 已就绪 diff --git a/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue b/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue index 16d70e896..41a20968c 100644 --- a/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue +++ b/apps/stage-tamagotchi/src/renderer/src/components/ChatHistory.vue @@ -7,7 +7,7 @@ import { nextTick, ref } from 'vue' const chatHistoryRef = ref() -const { messages } = storeToRefs(useChatStore()) +const { messages, sending } = storeToRefs(useChatStore()) const bounding = useElementBounding(chatHistoryRef, { immediate: true, windowScroll: true, windowResize: true }) const { y: chatHistoryContainerY } = useScroll(chatHistoryRef) @@ -34,38 +34,58 @@ onTokenLiteral(async () => {