Update localization messages for Chinese, English, and Japanese languages and fix whitespace formatting in isTTSEnabled function in tts.ts
This commit is contained in:
parent
c914233610
commit
aeefb00de0
@ -49,5 +49,6 @@
|
|||||||
"noData": "No data",
|
"noData": "No data",
|
||||||
"noHistory": "No chat history",
|
"noHistory": "No chat history",
|
||||||
"chatWithCurrentPage": "Chat with current page",
|
"chatWithCurrentPage": "Chat with current page",
|
||||||
"beta": "Beta"
|
"beta": "Beta",
|
||||||
|
"tts": "Read aloud"
|
||||||
}
|
}
|
@ -49,5 +49,6 @@
|
|||||||
"noData": "データがありません",
|
"noData": "データがありません",
|
||||||
"noHistory": "チャット履歴がありません",
|
"noHistory": "チャット履歴がありません",
|
||||||
"chatWithCurrentPage": "現在のページでチャット",
|
"chatWithCurrentPage": "現在のページでチャット",
|
||||||
"beta": "ベータ"
|
"beta": "ベータ",
|
||||||
|
"tts": "読み上げ"
|
||||||
}
|
}
|
@ -49,5 +49,6 @@
|
|||||||
"noData": "无数据",
|
"noData": "无数据",
|
||||||
"noHistory": "无聊天记录",
|
"noHistory": "无聊天记录",
|
||||||
"chatWithCurrentPage": "与当前页面聊天",
|
"chatWithCurrentPage": "与当前页面聊天",
|
||||||
"beta": "Beta"
|
"beta": "Beta",
|
||||||
|
"tts": "朗读"
|
||||||
}
|
}
|
@ -8,7 +8,6 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
Form,
|
Form,
|
||||||
Switch,
|
Switch,
|
||||||
Empty
|
|
||||||
} from "antd"
|
} from "antd"
|
||||||
import { Trash2, Pen, Computer, Zap } from "lucide-react"
|
import { Trash2, Pen, Computer, Zap } from "lucide-react"
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
|
@ -7,7 +7,7 @@ import { useWebUI } from "@/store/webui"
|
|||||||
export const SidePanelBody = () => {
|
export const SidePanelBody = () => {
|
||||||
const { messages, streaming } = useMessage()
|
const { messages, streaming } = useMessage()
|
||||||
const divRef = React.useRef<HTMLDivElement>(null)
|
const divRef = React.useRef<HTMLDivElement>(null)
|
||||||
const {ttsEnabled} = useWebUI()
|
const { ttsEnabled } = useWebUI()
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (divRef.current) {
|
if (divRef.current) {
|
||||||
divRef.current.scrollIntoView({ behavior: "smooth" })
|
divRef.current.scrollIntoView({ behavior: "smooth" })
|
||||||
@ -18,7 +18,7 @@ export const SidePanelBody = () => {
|
|||||||
{messages.length === 0 && <EmptySidePanel />}
|
{messages.length === 0 && <EmptySidePanel />}
|
||||||
{messages.map((message, index) => (
|
{messages.map((message, index) => (
|
||||||
<PlaygroundMessage
|
<PlaygroundMessage
|
||||||
onEditFormSubmit={(value) => {}}
|
onEditFormSubmit={(value) => {}}
|
||||||
key={index}
|
key={index}
|
||||||
isBot={message.isBot}
|
isBot={message.isBot}
|
||||||
message={message.message}
|
message={message.message}
|
||||||
|
@ -135,11 +135,11 @@ export const EmptySidePanel = () => {
|
|||||||
viewBox="0 0 20 20"
|
viewBox="0 0 20 20"
|
||||||
fill="currentColor"
|
fill="currentColor"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
stroke-width="1">
|
strokeWidth="1">
|
||||||
<path
|
<path
|
||||||
fill-rule="evenodd"
|
fillRule="evenodd"
|
||||||
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
|
d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
|
||||||
clip-rule="evenodd"></path>
|
clipRule="evenodd"></path>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user