From ccc4ceabbfd58d9fc1663fcaf740736c940e367f Mon Sep 17 00:00:00 2001 From: Cato <41178744+catomean@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:36:12 +0100 Subject: [PATCH] deps: chatkit 0.24; localized sign-in and busy dictation problems in every locale (#513) Claude-Session: https://claude.ai/code/session_019MDtmvGASoUtc3fejF7Lsy --- messages/de.json | 4 +++- messages/en.json | 4 +++- messages/fr.json | 4 +++- messages/it.json | 4 +++- messages/ru.json | 4 +++- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- src/components/chat/use-chat-labels.ts | 2 ++ src/components/law/amend-form.tsx | 11 +++++++---- src/components/ui/dictate-button.tsx | 4 ++-- 10 files changed, 32 insertions(+), 17 deletions(-) diff --git a/messages/de.json b/messages/de.json index 0b058c3f..3988d16b 100644 --- a/messages/de.json +++ b/messages/de.json @@ -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", diff --git a/messages/en.json b/messages/en.json index 968a3003..43b4a00c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -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", diff --git a/messages/fr.json b/messages/fr.json index 518efa8b..76854318 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -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", diff --git a/messages/it.json b/messages/it.json index 5f5a63e6..0f316440 100644 --- a/messages/it.json +++ b/messages/it.json @@ -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", diff --git a/messages/ru.json b/messages/ru.json index 2e3f66c3..389b905b 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -1081,7 +1081,9 @@ "mic": "Микрофон заблокирован. Разрешите его для этого сайта и попробуйте снова.", "silence": "Ничего не слышно. Попробуйте ещё раз, чуть ближе к микрофону.", "unavailable": "Голосовой ввод сейчас недоступен. Напишите текст или попробуйте позже.", - "fileTooLarge": "Эта запись слишком большая, чтобы расшифровать её здесь." + "fileTooLarge": "Эта запись слишком большая, чтобы расшифровать её здесь.", + "signIn": "Войдите, чтобы пользоваться голосовым вводом.", + "busy": "Голосовой ввод сейчас перегружен. Попробуйте ещё раз через минуту." }, "app": { "chats": "Чаты", diff --git a/package.json b/package.json index 9dc67bb5..bd939427 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc777e3f..4b470581 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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 diff --git a/src/components/chat/use-chat-labels.ts b/src/components/chat/use-chat-labels.ts index 9d33f3ae..08354141 100644 --- a/src/components/chat/use-chat-labels.ts +++ b/src/components/chat/use-chat-labels.ts @@ -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: { diff --git a/src/components/law/amend-form.tsx b/src/components/law/amend-form.tsx index 504694f5..a05ca198 100644 --- a/src/components/law/amend-form.tsx +++ b/src/components/law/amend-form.tsx @@ -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"), }, }; diff --git a/src/components/ui/dictate-button.tsx b/src/components/ui/dictate-button.tsx index c20b8116..5927d04e 100644 --- a/src/components/ui/dictate-button.tsx +++ b/src/components/ui/dictate-button.tsx @@ -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; } /** @@ -53,7 +54,6 @@ export default function DictateButton({ onText, label, stopLabel, problems }: Di {dictation.problem && ( {problems[dictation.problem]} - {dictation.problemDetail ? ` ${dictation.problemDetail}` : ""} )}