feat: add Russian localization and independent STT languages
This commit is contained in:
@@ -205,7 +205,14 @@ function saveTree(id: string, tree: PlanTree): void {
|
||||
writeChat(record);
|
||||
}
|
||||
|
||||
function saveLanguage(id: string, language: "en" | "ru"): void {
|
||||
const record = getChat(id);
|
||||
if (!record || record.language === language) return;
|
||||
writeChat({ ...record, language });
|
||||
}
|
||||
|
||||
export const chatStore: ChatStore = {
|
||||
saveLanguage,
|
||||
createChat,
|
||||
getChat,
|
||||
listChats,
|
||||
|
||||
Reference in New Issue
Block a user