deps: chatkit 0.24; localized sign-in and busy dictation problems in every locale (#513)

Claude-Session: https://claude.ai/code/session_019MDtmvGASoUtc3fejF7Lsy
This commit is contained in:
Cato authored and GitHub committed 2026-11-11 14:36:12 +01:00
1 parent 79c33d3d20
commit ccc4ceabbf
10 files changed
+32 -17

No files matched your search

+3 -1
View File
@@ -1188,7 +1188,9 @@
"mic": "Das Mikrofon ist blockiert. Erlaube es für diese Seite und versuche es erneut.",
"silence": "Nichts gehört. Versuche es nochmals, etwas näher am Mikrofon.",
"unavailable": "Spracheingabe ist gerade nicht verfügbar. Tippe stattdessen oder versuche es später.",
"fileTooLarge": "Diese Aufnahme ist zu gross, um sie hier zu transkribieren."
"fileTooLarge": "Diese Aufnahme ist zu gross, um sie hier zu transkribieren.",
"signIn": "Melden Sie sich an, um die Spracheingabe zu nutzen.",
"busy": "Die Spracheingabe ist gerade ausgelastet. Versuchen Sie es gleich noch einmal."
},
"app": {
"chats": "Gespräche",
+3 -1
View File
@@ -1667,7 +1667,9 @@
"mic": "The microphone is blocked. Allow it for this site and try again.",
"silence": "Nothing was heard. Try again, a little closer to the mic.",
"unavailable": "Voice input is not available right now. Type instead, or try again later.",
"fileTooLarge": "That recording is too large to transcribe here."
"fileTooLarge": "That recording is too large to transcribe here.",
"signIn": "Sign in to use voice input.",
"busy": "Voice input is busy right now. Try again in a moment."
},
"app": {
"chats": "Chats",
+3 -1
View File
@@ -1081,7 +1081,9 @@
"mic": "Le microphone est bloqué. Autorisez-le pour ce site et réessayez.",
"silence": "Rien n’a été entendu. Réessayez, un peu plus près du micro.",
"unavailable": "La saisie vocale n’est pas disponible pour le moment. Écrivez à la place ou réessayez plus tard.",
"fileTooLarge": "Cet enregistrement est trop volumineux pour être transcrit ici."
"fileTooLarge": "Cet enregistrement est trop volumineux pour être transcrit ici.",
"signIn": "Connectez-vous pour utiliser la saisie vocale.",
"busy": "La saisie vocale est très sollicitée en ce moment. Réessayez dans un instant."
},
"app": {
"chats": "Conversations",
+3 -1
View File
@@ -1081,7 +1081,9 @@
"mic": "Il microfono è bloccato. Consentilo per questo sito e riprova.",
"silence": "Non è stato sentito nulla. Riprova, un po’ più vicino al microfono.",
"unavailable": "L’inserimento vocale non è disponibile al momento. Scrivi oppure riprova più tardi.",
"fileTooLarge": "Questa registrazione è troppo grande per essere trascritta qui."
"fileTooLarge": "Questa registrazione è troppo grande per essere trascritta qui.",
"signIn": "Accedi per usare la dettatura.",
"busy": "La dettatura è molto richiesta in questo momento. Riprova tra un attimo."
},
"app": {
"chats": "Conversazioni",
+3 -1
View File
@@ -1081,7 +1081,9 @@
"mic": "Микрофон заблокирован. Разрешите его для этого сайта и попробуйте снова.",
"silence": "Ничего не слышно. Попробуйте ещё раз, чуть ближе к микрофону.",
"unavailable": "Голосовой ввод сейчас недоступен. Напишите текст или попробуйте позже.",
"fileTooLarge": "Эта запись слишком большая, чтобы расшифровать её здесь."
"fileTooLarge": "Эта запись слишком большая, чтобы расшифровать её здесь.",
"signIn": "Войдите, чтобы пользоваться голосовым вводом.",
"busy": "Голосовой ввод сейчас перегружен. Попробуйте ещё раз через минуту."
},
"app": {
"chats": "Чаты",
+1 -1
View File
@@ -54,7 +54,7 @@
"@bitbaum/accountkit": "^0.27.0",
"@bitbaum/ai-kit": "^1.24.0",
"@bitbaum/chartkit": "^0.7.0",
"@bitbaum/chatkit": "^0.22.1",
"@bitbaum/chatkit": "^0.25.0",
"@bitbaum/geo-kit": "^0.8.0",
"@bitbaum/mail-kit": "0.2.0",
"@bitbaum/searchkit": "^0.2.3",
+5 -5
View File
@@ -24,8 +24,8 @@ importers:
specifier: ^0.7.0
version: 0.7.0(react@19.3.1)
'@bitbaum/chatkit':
specifier: ^0.22.1
version: 0.22.1(react@19.3.1)
specifier: ^0.25.0
version: 0.25.0(react@19.3.1)
'@bitbaum/geo-kit':
specifier: ^0.8.0
version: 0.8.0(d3-geo@3.1.1)(topojson-client@3.1.0)
@@ -424,8 +424,8 @@ packages:
peerDependencies:
react: '>=18'
'@bitbaum/chatkit@0.22.1':
resolution: {integrity: sha512-hAvxeJbpsMS6Jn0TTNyiVRpbhmsQqx52dG6woCH+UbZCZhuK4czldjIU8LpHppMk/NDuz7Yg+phKxJ6HDNiIkw==}
'@bitbaum/chatkit@0.25.0':
resolution: {integrity: sha512-SVhGRltxG2a860pGawFAb1FdY0mr5ZGk0aOMoNT5FEmeczgZwlEfEzR5o8DQO7np8g26LiBpgqGRNEfp3AiNWw==}
engines: {node: '>=20'}
hasBin: true
peerDependencies:
@@ -5119,7 +5119,7 @@ snapshots:
dependencies:
react: 19.3.1
'@bitbaum/chatkit@0.22.1(react@19.3.1)':
'@bitbaum/chatkit@0.25.0(react@19.3.1)':
dependencies:
pdfjs-dist: 6.4.299
react: 19.3.1
+2
View File
@@ -58,6 +58,8 @@ export function useChatLabels(): ChatLabels {
silence: t("dictation.silence"),
unavailable: t("dictation.unavailable"),
fileTooLarge: t("dictation.fileTooLarge"),
signIn: t("dictation.signIn"),
busy: t("dictation.busy"),
},
},
app: {
+7 -4
View File
@@ -82,6 +82,7 @@ function toChange(draft: DraftChange): Change | null {
*/
export default function AmendForm(props: AmendFormProps) {
const t = useTranslations("Amend");
const chat = useTranslations("Chat");
const router = useRouter();
const storageKey = `solon:amend:${props.act.id}:${props.forkOf ?? ""}`;
const first = useMemo(
@@ -202,10 +203,12 @@ export default function AmendForm(props: AmendFormProps) {
label: t("dictate"),
stopLabel: t("stopDictating"),
problems: {
mic: t("dictationProblems.mic"),
silence: t("dictationProblems.silence"),
unavailable: t("dictationProblems.unavailable"),
fileTooLarge: t("dictationProblems.fileTooLarge"),
mic: chat("dictation.mic"),
silence: chat("dictation.silence"),
unavailable: chat("dictation.unavailable"),
fileTooLarge: chat("dictation.fileTooLarge"),
signIn: chat("dictation.signIn"),
busy: chat("dictation.busy"),
},
};
+2 -2
View File
@@ -1,5 +1,6 @@
"use client";
import type { DictationProblem } from "@bitbaum/chatkit";
import { useDictation } from "@bitbaum/chatkit/react";
interface DictateButtonProps {
@@ -10,7 +11,7 @@ interface DictateButtonProps {
/** Said while a take is running. */
stopLabel: string;
/** What went wrong, in the reader's words: no microphone, nothing heard, no service, too large. */
problems: Record<"mic" | "silence" | "unavailable" | "fileTooLarge", string>;
problems: Record<DictationProblem, string>;
}
/**
@@ -53,7 +54,6 @@ export default function DictateButton({ onText, label, stopLabel, problems }: Di
{dictation.problem && (
<span role="status" className="text-xs text-fg-tertiary">
{problems[dictation.problem]}
{dictation.problemDetail ? ` ${dictation.problemDetail}` : ""}
</span>
)}
</span>