Update localization messages for Chinese, English, and Japanese languages and fix whitespace formatting in isTTSEnabled function in tts.ts

This commit is contained in:
n4ze3m
2024-04-16 00:45:22 +05:30
parent c914233610
commit aeefb00de0
6 changed files with 11 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import { useWebUI } from "@/store/webui"
export const SidePanelBody = () => {
const { messages, streaming } = useMessage()
const divRef = React.useRef<HTMLDivElement>(null)
const {ttsEnabled} = useWebUI()
const { ttsEnabled } = useWebUI()
React.useEffect(() => {
if (divRef.current) {
divRef.current.scrollIntoView({ behavior: "smooth" })
@@ -18,7 +18,7 @@ export const SidePanelBody = () => {
{messages.length === 0 && <EmptySidePanel />}
{messages.map((message, index) => (
<PlaygroundMessage
onEditFormSubmit={(value) => {}}
onEditFormSubmit={(value) => {}}
key={index}
isBot={message.isBot}
message={message.message}