From ed9505acdea8754ada037b2ade3e1e539d08aa30 Mon Sep 17 00:00:00 2001 From: Nolann Biron Date: Thu, 3 Dec 2026 11:48:51 +0100 Subject: [PATCH] Reply to selected text in Assistant answers Selecting text in an Assistant answer shows a Reply button that quotes the selection in the chat input. The paragraph Ask button no longer shows in Assistant answers. --- .../src/components/AIChat/AIChatMessages.tsx | 2 ++ .../AskAITextSelection/AskAITextSelection.tsx | 28 ++++++++++++++----- .../useStableTextSelection.ts | 12 +++++--- .../src/components/DocumentView/Paragraph.tsx | 5 ++-- packages/gitbook/src/intl/translations/ar.ts | 1 + packages/gitbook/src/intl/translations/bg.ts | 1 + packages/gitbook/src/intl/translations/cs.ts | 1 + packages/gitbook/src/intl/translations/da.ts | 1 + packages/gitbook/src/intl/translations/de.ts | 1 + packages/gitbook/src/intl/translations/el.ts | 1 + packages/gitbook/src/intl/translations/en.ts | 1 + packages/gitbook/src/intl/translations/es.ts | 1 + packages/gitbook/src/intl/translations/et.ts | 1 + packages/gitbook/src/intl/translations/fi.ts | 1 + packages/gitbook/src/intl/translations/fr.ts | 1 + packages/gitbook/src/intl/translations/he.ts | 1 + packages/gitbook/src/intl/translations/hi.ts | 1 + packages/gitbook/src/intl/translations/hr.ts | 1 + packages/gitbook/src/intl/translations/hu.ts | 1 + packages/gitbook/src/intl/translations/id.ts | 1 + packages/gitbook/src/intl/translations/is.ts | 1 + packages/gitbook/src/intl/translations/it.ts | 1 + packages/gitbook/src/intl/translations/ja.ts | 1 + packages/gitbook/src/intl/translations/ko.ts | 1 + packages/gitbook/src/intl/translations/lt.ts | 1 + packages/gitbook/src/intl/translations/lv.ts | 1 + packages/gitbook/src/intl/translations/ms.ts | 1 + packages/gitbook/src/intl/translations/nl.ts | 1 + packages/gitbook/src/intl/translations/no.ts | 1 + packages/gitbook/src/intl/translations/pl.ts | 1 + .../gitbook/src/intl/translations/pt-br.ts | 1 + packages/gitbook/src/intl/translations/pt.ts | 1 + packages/gitbook/src/intl/translations/ro.ts | 1 + packages/gitbook/src/intl/translations/ru.ts | 1 + packages/gitbook/src/intl/translations/sk.ts | 1 + packages/gitbook/src/intl/translations/sl.ts | 1 + packages/gitbook/src/intl/translations/sv.ts | 1 + packages/gitbook/src/intl/translations/th.ts | 1 + packages/gitbook/src/intl/translations/tr.ts | 1 + packages/gitbook/src/intl/translations/uk.ts | 1 + packages/gitbook/src/intl/translations/vi.ts | 1 + packages/gitbook/src/intl/translations/yue.ts | 1 + .../gitbook/src/intl/translations/zh-tw.ts | 1 + packages/gitbook/src/intl/translations/zh.ts | 1 + 44 files changed, 74 insertions(+), 13 deletions(-) diff --git a/packages/gitbook/src/components/AIChat/AIChatMessages.tsx b/packages/gitbook/src/components/AIChat/AIChatMessages.tsx index 812e76043..afd700e6b 100644 --- a/packages/gitbook/src/components/AIChat/AIChatMessages.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatMessages.tsx @@ -161,6 +161,8 @@ function AIChatAssistantGroup(props: { onOpenChange={setManuallyOpened} disabled={!hasFinalAnswer} data-testid="ai-chat-message-assistant" + // Selecting text here offers "Reply" (see `AskAITextSelection`). + data-ai-chat-reply-root="" id={`message-${firstAssistantIndex}`} className={tcls( 'flex flex-col gap-2', diff --git a/packages/gitbook/src/components/AIChat/AskAITextSelection/AskAITextSelection.tsx b/packages/gitbook/src/components/AIChat/AskAITextSelection/AskAITextSelection.tsx index 2afba1ef5..d0b8013e1 100644 --- a/packages/gitbook/src/components/AIChat/AskAITextSelection/AskAITextSelection.tsx +++ b/packages/gitbook/src/components/AIChat/AskAITextSelection/AskAITextSelection.tsx @@ -22,7 +22,8 @@ const MARGIN = 8; /** * Floating "Ask" button anchored above a text selection. Clicking it stages the selection as a - * reference and opens the AI chat. Only rendered in Assistant mode, on non-touch devices. + * reference and opens the AI chat. In an assistant answer, it reads "Reply" and quotes the + * selection in the open chat. Only rendered in Assistant mode, on non-touch devices. */ export function AskAITextSelection() { const config = useAIConfig(); @@ -36,11 +37,13 @@ export function AskAITextSelection() { const toolbarRef = React.useRef(null); const { selection, clear } = useStableTextSelection({ - rootSelector: '[data-content-ref-root]', + rootSelector: '[data-content-ref-root], [data-ai-chat-reply-root]', enabled, ignoreRef: toolbarRef, }); + const isReply = selection?.root.hasAttribute('data-ai-chat-reply-root') ?? false; + const [coords, setCoords] = React.useState<{ top: number; left: number } | null>(null); // Position once the button has been measured, so it can be centered and clamped to the viewport. @@ -73,7 +76,9 @@ export function AskAITextSelection() { }, [selection]); const onClick = () => { - trackEvent({ type: 'ask_trigger_click', trigger: 'selection' }); + if (!isReply) { + trackEvent({ type: 'ask_trigger_click', trigger: 'selection' }); + } if (!selection) { return; } @@ -87,7 +92,9 @@ export function AskAITextSelection() { id: `text-${fnv1a(content, { size: 32 })}`, content, }); - chatController.open('selection'); + if (!isReply) { + chatController.open('selection'); + } chatController.focus(); clear(); }; @@ -109,7 +116,8 @@ export function AskAITextSelection() { position: 'fixed', top: coords?.top ?? 0, left: coords?.left ?? 0, - zIndex: 40, + // Above the AI chat side sheet (z-41), for replies. + zIndex: 42, }} // Keep the selection alive: prevent the button from stealing focus on click. onMouseDown={(event) => event.preventDefault()} @@ -117,11 +125,17 @@ export function AskAITextSelection() { ) : null} diff --git a/packages/gitbook/src/components/AIChat/AskAITextSelection/useStableTextSelection.ts b/packages/gitbook/src/components/AIChat/AskAITextSelection/useStableTextSelection.ts index ae0e92f3c..e1031227e 100644 --- a/packages/gitbook/src/components/AIChat/AskAITextSelection/useStableTextSelection.ts +++ b/packages/gitbook/src/components/AIChat/AskAITextSelection/useStableTextSelection.ts @@ -11,10 +11,12 @@ type SelectionAnchor = { export type StableTextSelection = { anchor: SelectionAnchor; text: string; + /** The `rootSelector` match that holds the selection. */ + root: Element; }; type Options = { - /** Selector of the content root; both selection endpoints must be inside it. */ + /** Selector of the content roots; both selection endpoints must be inside the same one. */ rootSelector: string; enabled: boolean; /** Pointer events inside this element are ignored, so clicking the UI keeps the selection. */ @@ -180,13 +182,15 @@ function readStableSelection(rootSelector: string): StableTextSelection | null { return null; } - const root = document.querySelector(rootSelector); - if (!root || !root.contains(sel.anchorNode) || !root.contains(sel.focusNode)) { + const anchorElement = + sel.anchorNode instanceof Element ? sel.anchorNode : sel.anchorNode?.parentElement; + const root = anchorElement?.closest(rootSelector); + if (!root || !root.contains(sel.focusNode)) { return null; } const anchor = getSelectionAnchor(sel); - return anchor ? { anchor, text } : null; + return anchor ? { anchor, text, root } : null; } /** Box centered above the whole selection, or null if it has no size or is scrolled out of view. */ diff --git a/packages/gitbook/src/components/DocumentView/Paragraph.tsx b/packages/gitbook/src/components/DocumentView/Paragraph.tsx index 3f3889947..6cb556eb5 100644 --- a/packages/gitbook/src/components/DocumentView/Paragraph.tsx +++ b/packages/gitbook/src/components/DocumentView/Paragraph.tsx @@ -27,10 +27,11 @@ export function Paragraph(props: BlockProps) {

); - // Offer to ask the assistant about any paragraph, in Assistant mode, on screen. + // Offer to ask the assistant about any paragraph of the page, in Assistant mode. Not in AI + // answers, where replying to a selection is the way to follow up. const contentContext = context.contentContext; const aiAssistantEnabled = - context.mode !== 'print' && + context.isPageBody && // Table cells would clip the margin button, and big tables hold thousands of paragraphs. !ancestorBlocks.some((ancestor) => ancestor.type === 'table') && contentContext != null && diff --git a/packages/gitbook/src/intl/translations/ar.ts b/packages/gitbook/src/intl/translations/ar.ts index 20637296d..35d498808 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -36,6 +36,7 @@ export const ar: TranslationLanguage = { search_scope_variant_all: 'كل المحتوى', search_scope_variant_all_description: 'كل نسخة متاحة', ask: 'اسأل', + reply: 'رد', search_ask: 'اسأل "${1}"', search_ask_description: 'اعثر على الإجابة باستخدام ${1}', search_ask_sources: 'المصادر', diff --git a/packages/gitbook/src/intl/translations/bg.ts b/packages/gitbook/src/intl/translations/bg.ts index b0ef6b2a2..3af39a994 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -36,6 +36,7 @@ export const bg: TranslationLanguage = { search_scope_variant_all: 'Цялото съдържание', search_scope_variant_all_description: 'Всеки наличен вариант', ask: 'Попитайте', + reply: 'Отговор', search_ask: 'Попитайте "${1}"', search_ask_description: 'Намерете отговора с ${1}', search_ask_sources: 'Източници', diff --git a/packages/gitbook/src/intl/translations/cs.ts b/packages/gitbook/src/intl/translations/cs.ts index 8f0d26ce6..1e2c5f4e8 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -36,6 +36,7 @@ export const cs: TranslationLanguage = { search_scope_variant_all: 'Veškerý obsah', search_scope_variant_all_description: 'Každá dostupná varianta', ask: 'Zeptat se', + reply: 'Odpovědět', search_ask: 'Zeptat se "${1}"', search_ask_description: 'Najít odpověď pomocí ${1}', search_ask_sources: 'Zdroje', diff --git a/packages/gitbook/src/intl/translations/da.ts b/packages/gitbook/src/intl/translations/da.ts index d6b27040e..f0ef4c74f 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -36,6 +36,7 @@ export const da: TranslationLanguage = { search_scope_variant_all: 'Alt indhold', search_scope_variant_all_description: 'Alle tilgængelige varianter', ask: 'Spørg', + reply: 'Svar', search_ask: 'Spørg "${1}"', search_ask_description: 'Find svaret med ${1}', search_ask_sources: 'Kilder', diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index 7878c382c..1c3c413a4 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -36,6 +36,7 @@ export const de: TranslationLanguage = { search_scope_variant_all: 'Alle Inhalte', search_scope_variant_all_description: 'Jede verfügbare Variante', ask: 'Fragen', + reply: 'Antworten', ai_chat_ask_query: 'An ${1} fragen: "${2}"', search_ask: 'Fragen "${1}"', search_ask_description: 'Finden Sie die Antwort mit ${1}', diff --git a/packages/gitbook/src/intl/translations/el.ts b/packages/gitbook/src/intl/translations/el.ts index 84db94075..91292f022 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -36,6 +36,7 @@ export const el: TranslationLanguage = { search_scope_variant_all: 'Όλο το περιεχόμενο', search_scope_variant_all_description: 'Κάθε διαθέσιμη παραλλαγή', ask: 'Ρωτήστε', + reply: 'Απάντηση', search_ask: 'Ρωτήστε "${1}"', search_ask_description: 'Βρείτε την απάντηση με το ${1}', search_ask_sources: 'Πηγές', diff --git a/packages/gitbook/src/intl/translations/en.ts b/packages/gitbook/src/intl/translations/en.ts index 6af0d20aa..9fdd1b419 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -34,6 +34,7 @@ export const en = { search_scope_variant_all: 'All content', search_scope_variant_all_description: 'Every available variant', ask: 'Ask', + reply: 'Reply', search_ask: 'Ask "${1}"', search_ask_description: 'Find the answer with ${1}', search_ask_sources: 'Sources', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index e106ebe1c..8a86a8818 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -36,6 +36,7 @@ export const es: TranslationLanguage = { search_scope_variant_all: 'Todo el contenido', search_scope_variant_all_description: 'Cada variante disponible', ask: 'Preguntar', + reply: 'Responder', ai_chat_ask_query: 'Preguntar a ${1} "${2}"', search_ask: 'Preguntar "${1}"', search_ask_description: 'Encuentra la respuesta con ${1}', diff --git a/packages/gitbook/src/intl/translations/et.ts b/packages/gitbook/src/intl/translations/et.ts index aaa689526..a0667829d 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -36,6 +36,7 @@ export const et: TranslationLanguage = { search_scope_variant_all: 'Kogu sisu', search_scope_variant_all_description: 'Iga saadaolev variant', ask: 'Küsi', + reply: 'Vasta', search_ask: 'Küsi "${1}"', search_ask_description: 'Leia vastus ${1} abil', search_ask_sources: 'Allikad', diff --git a/packages/gitbook/src/intl/translations/fi.ts b/packages/gitbook/src/intl/translations/fi.ts index 7ed8afe6f..dc1f9bb55 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -36,6 +36,7 @@ export const fi: TranslationLanguage = { search_scope_variant_all: 'Kaikki sisältö', search_scope_variant_all_description: 'Kaikki saatavilla olevat variantit', ask: 'Kysy', + reply: 'Vastaa', search_ask: 'Kysy "${1}"', search_ask_description: 'Etsi vastaus palvelulla ${1}', search_ask_sources: 'Lähteet', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 8a1723177..19616dc10 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -36,6 +36,7 @@ export const fr: TranslationLanguage = { search_scope_variant_all: 'Tout le contenu', search_scope_variant_all_description: 'Chaque variante disponible', ask: 'Une question ?', + reply: 'Répondre', ai_chat_ask_query: 'Demander à ${1} « ${2} »', search_ask: 'Demander « ${1} »', search_ask_description: 'Trouvez la réponse avec ${1}', diff --git a/packages/gitbook/src/intl/translations/he.ts b/packages/gitbook/src/intl/translations/he.ts index d53a9645d..03b23afad 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -36,6 +36,7 @@ export const he: TranslationLanguage = { search_scope_variant_all: 'כל התוכן', search_scope_variant_all_description: 'כל גרסה זמינה', ask: 'שאל', + reply: 'השב', search_ask: 'שאל "${1}"', search_ask_description: 'מצא את התשובה בעזרת ${1}', search_ask_sources: 'מקורות', diff --git a/packages/gitbook/src/intl/translations/hi.ts b/packages/gitbook/src/intl/translations/hi.ts index 9d2c3523b..b5025d59d 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -36,6 +36,7 @@ export const hi: TranslationLanguage = { search_scope_variant_all: 'सभी सामग्री', search_scope_variant_all_description: 'हर उपलब्ध वैरिएंट', ask: 'पूछें', + reply: 'जवाब दें', search_ask: '"${1}" पूछें', search_ask_description: '${1} से उत्तर खोजें', search_ask_sources: 'स्रोत', diff --git a/packages/gitbook/src/intl/translations/hr.ts b/packages/gitbook/src/intl/translations/hr.ts index c1825f778..65a5a8e47 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -36,6 +36,7 @@ export const hr: TranslationLanguage = { search_scope_variant_all: 'Sav sadržaj', search_scope_variant_all_description: 'Svaka dostupna varijanta', ask: 'Pitaj', + reply: 'Odgovori', search_ask: 'Pitaj "${1}"', search_ask_description: 'Pronađi odgovor pomoću ${1}', search_ask_sources: 'Izvori', diff --git a/packages/gitbook/src/intl/translations/hu.ts b/packages/gitbook/src/intl/translations/hu.ts index c0a5c960b..78d01c0c7 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -36,6 +36,7 @@ export const hu: TranslationLanguage = { search_scope_variant_all: 'Minden tartalom', search_scope_variant_all_description: 'Minden elérhető változat', ask: 'Kérdezés', + reply: 'Válasz', search_ask: '"${1}" kérdezése', search_ask_description: 'Találja meg a választ ezzel: ${1}', search_ask_sources: 'Források', diff --git a/packages/gitbook/src/intl/translations/id.ts b/packages/gitbook/src/intl/translations/id.ts index cdd480efb..cb351231c 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -36,6 +36,7 @@ export const id: TranslationLanguage = { search_scope_variant_all: 'Semua konten', search_scope_variant_all_description: 'Setiap varian yang tersedia', ask: 'Tanya', + reply: 'Balas', search_ask: 'Tanya "${1}"', search_ask_description: 'Temukan jawabannya dengan ${1}', search_ask_sources: 'Sumber', diff --git a/packages/gitbook/src/intl/translations/is.ts b/packages/gitbook/src/intl/translations/is.ts index 991caf291..eaccf68da 100644 --- a/packages/gitbook/src/intl/translations/is.ts +++ b/packages/gitbook/src/intl/translations/is.ts @@ -36,6 +36,7 @@ export const is: TranslationLanguage = { search_scope_variant_all: 'Allt efni', search_scope_variant_all_description: 'Allar tiltækar útgáfur', ask: 'Spyrja', + reply: 'Svara', search_ask: 'Spyrja "${1}"', search_ask_description: 'Finndu svarið með ${1}', search_ask_sources: 'Heimildir', diff --git a/packages/gitbook/src/intl/translations/it.ts b/packages/gitbook/src/intl/translations/it.ts index 2f2c0b903..60189b036 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -36,6 +36,7 @@ export const it: TranslationLanguage = { search_scope_variant_all: 'Tutti i contenuti', search_scope_variant_all_description: 'Ogni variante disponibile', ask: 'Chiedi', + reply: 'Rispondi', ai_chat_ask_query: 'Chiedi a ${1} "${2}"', search_ask: 'Chiedi "${1}"', search_ask_description: 'Trova la risposta con ${1}', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index 19e03ceb8..1b7d24afa 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -36,6 +36,7 @@ export const ja: TranslationLanguage = { search_scope_variant_all: 'すべてのコンテンツ', search_scope_variant_all_description: '利用可能なすべてのバリエーション', ask: '質問する', + reply: '返信', ai_chat_ask_query: '"${2}" を ${1} に質問する', search_ask: '"${1}" を質問する', search_ask_description: '${1}で答えを見つける', diff --git a/packages/gitbook/src/intl/translations/ko.ts b/packages/gitbook/src/intl/translations/ko.ts index 865ed0be7..944e24e12 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -36,6 +36,7 @@ export const ko: TranslationLanguage = { search_scope_variant_all: '전체 콘텐츠', search_scope_variant_all_description: '사용 가능한 모든 변형', ask: '질문', + reply: '답장', ai_chat_ask_query: '${1}에게 "${2}" 질문하기', search_ask: '"${1}" 질문하기', search_ask_description: '${1}로 답변 찾기', diff --git a/packages/gitbook/src/intl/translations/lt.ts b/packages/gitbook/src/intl/translations/lt.ts index aa70ee6f7..286982d14 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -36,6 +36,7 @@ export const lt: TranslationLanguage = { search_scope_variant_all: 'Visas turinys', search_scope_variant_all_description: 'Kiekvienas galimas variantas', ask: 'Klausti', + reply: 'Atsakyti', search_ask: 'Klausti "${1}"', search_ask_description: 'Raskite atsakymą naudodami ${1}', search_ask_sources: 'Šaltiniai', diff --git a/packages/gitbook/src/intl/translations/lv.ts b/packages/gitbook/src/intl/translations/lv.ts index c46b985f2..de33c00fe 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -36,6 +36,7 @@ export const lv: TranslationLanguage = { search_scope_variant_all: 'Viss saturs', search_scope_variant_all_description: 'Katrs pieejamais variants', ask: 'Jautāt', + reply: 'Atbildēt', search_ask: 'Jautāt "${1}"', search_ask_description: 'Atrodiet atbildi ar ${1}', search_ask_sources: 'Avoti', diff --git a/packages/gitbook/src/intl/translations/ms.ts b/packages/gitbook/src/intl/translations/ms.ts index c26a4eadc..2200d9800 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -36,6 +36,7 @@ export const ms: TranslationLanguage = { search_scope_variant_all: 'Semua kandungan', search_scope_variant_all_description: 'Setiap varian yang tersedia', ask: 'Tanya', + reply: 'Balas', search_ask: 'Tanya "${1}"', search_ask_description: 'Cari jawapan dengan ${1}', search_ask_sources: 'Sumber', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index b423bfc37..38e9dfbc7 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -36,6 +36,7 @@ export const nl: TranslationLanguage = { search_scope_variant_all: 'Alle inhoud', search_scope_variant_all_description: 'Elke beschikbare variant', ask: 'Vragen', + reply: 'Beantwoorden', ai_chat_ask_query: 'Vraag ${1} "${2}"', search_ask: 'Vraag "${1}"', search_ask_description: 'Vind het antwoord met ${1}', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index 178fc8e40..4c896f772 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -36,6 +36,7 @@ export const no: TranslationLanguage = { search_scope_variant_all: 'Alt innhold', search_scope_variant_all_description: 'Hver tilgjengelig variant', ask: 'Spør', + reply: 'Svar', ai_chat_ask_query: 'Spør ${1} "${2}"', search_ask: 'Spør "${1}"', search_ask_description: 'Finn svaret med ${1}', diff --git a/packages/gitbook/src/intl/translations/pl.ts b/packages/gitbook/src/intl/translations/pl.ts index eaafcb0a1..b81c3a595 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -36,6 +36,7 @@ export const pl: TranslationLanguage = { search_scope_variant_all: 'Cała treść', search_scope_variant_all_description: 'Każdy dostępny wariant', ask: 'Zapytaj', + reply: 'Odpowiedz', search_ask: 'Zapytaj "${1}"', search_ask_description: 'Znajdź odpowiedź z ${1}', search_ask_sources: 'Źródła', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index c0aeb275e..f243ebdd2 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -36,6 +36,7 @@ export const pt_br: TranslationLanguage = { search_scope_variant_all: 'Todo o conteúdo', search_scope_variant_all_description: 'Cada variante disponível', ask: 'Perguntar', + reply: 'Responder', ai_chat_ask_query: 'Perguntar a ${1} "${2}"', search_ask: 'Perguntar "${1}"', search_ask_description: 'Encontre a resposta com ${1}', diff --git a/packages/gitbook/src/intl/translations/pt.ts b/packages/gitbook/src/intl/translations/pt.ts index cc93001dd..6644a0f46 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -36,6 +36,7 @@ export const pt: TranslationLanguage = { search_scope_variant_all: 'Todo o conteúdo', search_scope_variant_all_description: 'Todas as variantes disponíveis', ask: 'Perguntar', + reply: 'Responder', search_ask: 'Perguntar "${1}"', search_ask_description: 'Encontre a resposta com ${1}', search_ask_sources: 'Fontes', diff --git a/packages/gitbook/src/intl/translations/ro.ts b/packages/gitbook/src/intl/translations/ro.ts index 647b1b1d8..d96723227 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -36,6 +36,7 @@ export const ro: TranslationLanguage = { search_scope_variant_all: 'Tot conținutul', search_scope_variant_all_description: 'Fiecare variantă disponibilă', ask: 'Întreabă', + reply: 'Răspunde', search_ask: 'Întreabă "${1}"', search_ask_description: 'Găsește răspunsul cu ${1}', search_ask_sources: 'Surse', diff --git a/packages/gitbook/src/intl/translations/ru.ts b/packages/gitbook/src/intl/translations/ru.ts index dce6be9d1..019781639 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -36,6 +36,7 @@ export const ru: TranslationLanguage = { search_scope_variant_all: 'Весь контент', search_scope_variant_all_description: 'Каждый доступный вариант', ask: 'Спросить', + reply: 'Ответить', ai_chat_ask_query: 'Спросить у ${1} "${2}"', search_ask: 'Спросить "${1}"', search_ask_description: 'Найти ответ с помощью ${1}', diff --git a/packages/gitbook/src/intl/translations/sk.ts b/packages/gitbook/src/intl/translations/sk.ts index 00d612446..5b81170fe 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -36,6 +36,7 @@ export const sk: TranslationLanguage = { search_scope_variant_all: 'Všetok obsah', search_scope_variant_all_description: 'Každý dostupný variant', ask: 'Opýtať sa', + reply: 'Odpovedať', search_ask: 'Opýtať sa "${1}"', search_ask_description: 'Nájdite odpoveď pomocou ${1}', search_ask_sources: 'Zdroje', diff --git a/packages/gitbook/src/intl/translations/sl.ts b/packages/gitbook/src/intl/translations/sl.ts index b631e92c6..ff7ca1df8 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -36,6 +36,7 @@ export const sl: TranslationLanguage = { search_scope_variant_all: 'Vsa vsebina', search_scope_variant_all_description: 'Vsaka razpoložljiva različica', ask: 'Vprašaj', + reply: 'Odgovori', search_ask: 'Vprašaj "${1}"', search_ask_description: 'Poišči odgovor z ${1}', search_ask_sources: 'Viri', diff --git a/packages/gitbook/src/intl/translations/sv.ts b/packages/gitbook/src/intl/translations/sv.ts index 076ba6630..17c3df0ff 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -36,6 +36,7 @@ export const sv: TranslationLanguage = { search_scope_variant_all: 'Allt innehåll', search_scope_variant_all_description: 'Varje tillgänglig variant', ask: 'Fråga', + reply: 'Svara', search_ask: 'Fråga "${1}"', search_ask_description: 'Hitta svaret med ${1}', search_ask_sources: 'Källor', diff --git a/packages/gitbook/src/intl/translations/th.ts b/packages/gitbook/src/intl/translations/th.ts index 9f26fc531..ae986c693 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -36,6 +36,7 @@ export const th: TranslationLanguage = { search_scope_variant_all: 'เนื้อหาทั้งหมด', search_scope_variant_all_description: 'ทุกตัวแปรที่มี', ask: 'ถาม', + reply: 'ตอบกลับ', search_ask: 'ถาม "${1}"', search_ask_description: 'ค้นหาคำตอบด้วย ${1}', search_ask_sources: 'แหล่งที่มา', diff --git a/packages/gitbook/src/intl/translations/tr.ts b/packages/gitbook/src/intl/translations/tr.ts index eba4707b0..f84eff1da 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -36,6 +36,7 @@ export const tr: TranslationLanguage = { search_scope_variant_all: 'Tüm içerik', search_scope_variant_all_description: 'Kullanılabilir her varyant', ask: 'Sor', + reply: 'Yanıtla', search_ask: '"${1}" sor', search_ask_description: '${1} ile cevabı bul', search_ask_sources: 'Kaynaklar', diff --git a/packages/gitbook/src/intl/translations/uk.ts b/packages/gitbook/src/intl/translations/uk.ts index d37adf27b..e68c6e510 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -36,6 +36,7 @@ export const uk: TranslationLanguage = { search_scope_variant_all: 'Увесь вміст', search_scope_variant_all_description: 'Кожен доступний варіант', ask: 'Запитати', + reply: 'Відповісти', search_ask: 'Запитати "${1}"', search_ask_description: 'Знайдіть відповідь за допомогою ${1}', search_ask_sources: 'Джерела', diff --git a/packages/gitbook/src/intl/translations/vi.ts b/packages/gitbook/src/intl/translations/vi.ts index e4a319500..39344aeb4 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -36,6 +36,7 @@ export const vi: TranslationLanguage = { search_scope_variant_all: 'Tất cả nội dung', search_scope_variant_all_description: 'Mọi biến thể có sẵn', ask: 'Hỏi', + reply: 'Trả lời', search_ask: 'Hỏi "${1}"', search_ask_description: 'Tìm câu trả lời bằng ${1}', search_ask_sources: 'Nguồn', diff --git a/packages/gitbook/src/intl/translations/yue.ts b/packages/gitbook/src/intl/translations/yue.ts index cf2e862a4..1fbfea780 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -36,6 +36,7 @@ export const yue: TranslationLanguage = { search_scope_variant_all: '所有內容', search_scope_variant_all_description: '所有可用版本', ask: '發問', + reply: '回覆', search_ask: '問「${1}」', search_ask_description: '用 ${1} 搵答案', search_ask_sources: '來源', diff --git a/packages/gitbook/src/intl/translations/zh-tw.ts b/packages/gitbook/src/intl/translations/zh-tw.ts index be681396e..4ed837449 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -36,6 +36,7 @@ export const zh_tw: TranslationLanguage = { search_scope_variant_all: '所有內容', search_scope_variant_all_description: '所有可用版本', ask: '詢問', + reply: '回覆', search_ask: '詢問「${1}」', search_ask_description: '使用 ${1} 尋找答案', search_ask_sources: '來源', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 4f8c033c6..9ca71ca40 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -36,6 +36,7 @@ export const zh: TranslationLanguage = { search_scope_variant_all: '所有内容', search_scope_variant_all_description: '每个可用的变体', ask: '询问', + reply: '回复', ai_chat_ask_query: '向${1}询问"${2}"', search_ask: '询问"${1}"', search_ask_description: '利用${1}找到答案',