From e519454bf09b7a264b061e565e35363f9f5f32b7 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Fri, 19 Jun 2026 17:26:24 +0200 Subject: [PATCH 1/6] Add per-paragraph margin button to ask the assistant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the "ask the assistant about a selection" feature more discoverable by adding a hover-revealed icon button in the document margin for every paragraph. - AskAIParagraphButton: an absolutely-positioned, pointer-fine-only button that stages the paragraph's text as a chat reference and opens/focuses the assistant. Per-block position nudges live in the component via `in-[…]` ancestor variants. - Paragraph: wrap each paragraph in a `group/ask-ai` container and render the button when the site is in Assistant mode (on screen, non-empty paragraphs). - i18n: generalize `ai_chat_ask_about_page` -> `ai_chat_ask_about` with a parameterized target and add `this_page`/`this_text` keys across all locales; update PageActions to pass the target. Co-Authored-By: Claude Opus 4.8 --- .../AskAIParagraphButton.tsx | 81 +++++++++++++++++++ .../AIChat/AskAIParagraphButton/index.ts | 1 + .../gitbook/src/components/AIChat/index.ts | 1 + .../src/components/DocumentView/Paragraph.tsx | 26 +++++- .../components/PageActions/PageActions.tsx | 14 +++- packages/gitbook/src/intl/translations/ar.ts | 4 +- packages/gitbook/src/intl/translations/bg.ts | 4 +- packages/gitbook/src/intl/translations/cs.ts | 4 +- packages/gitbook/src/intl/translations/da.ts | 4 +- packages/gitbook/src/intl/translations/de.ts | 4 +- packages/gitbook/src/intl/translations/el.ts | 4 +- packages/gitbook/src/intl/translations/en.ts | 4 +- packages/gitbook/src/intl/translations/es.ts | 4 +- packages/gitbook/src/intl/translations/et.ts | 4 +- packages/gitbook/src/intl/translations/fi.ts | 4 +- packages/gitbook/src/intl/translations/fr.ts | 4 +- packages/gitbook/src/intl/translations/he.ts | 4 +- packages/gitbook/src/intl/translations/hi.ts | 4 +- packages/gitbook/src/intl/translations/hr.ts | 4 +- packages/gitbook/src/intl/translations/hu.ts | 4 +- packages/gitbook/src/intl/translations/id.ts | 4 +- packages/gitbook/src/intl/translations/it.ts | 4 +- packages/gitbook/src/intl/translations/ja.ts | 4 +- packages/gitbook/src/intl/translations/ko.ts | 4 +- packages/gitbook/src/intl/translations/lt.ts | 4 +- packages/gitbook/src/intl/translations/lv.ts | 4 +- packages/gitbook/src/intl/translations/ms.ts | 4 +- packages/gitbook/src/intl/translations/nl.ts | 4 +- packages/gitbook/src/intl/translations/no.ts | 4 +- packages/gitbook/src/intl/translations/pl.ts | 4 +- .../gitbook/src/intl/translations/pt-br.ts | 4 +- packages/gitbook/src/intl/translations/pt.ts | 4 +- packages/gitbook/src/intl/translations/ro.ts | 4 +- packages/gitbook/src/intl/translations/ru.ts | 4 +- packages/gitbook/src/intl/translations/sk.ts | 4 +- packages/gitbook/src/intl/translations/sl.ts | 4 +- packages/gitbook/src/intl/translations/sv.ts | 4 +- packages/gitbook/src/intl/translations/th.ts | 4 +- packages/gitbook/src/intl/translations/tr.ts | 4 +- packages/gitbook/src/intl/translations/uk.ts | 4 +- packages/gitbook/src/intl/translations/vi.ts | 4 +- packages/gitbook/src/intl/translations/yue.ts | 4 +- .../gitbook/src/intl/translations/zh-tw.ts | 4 +- packages/gitbook/src/intl/translations/zh.ts | 4 +- 44 files changed, 237 insertions(+), 42 deletions(-) create mode 100644 packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx create mode 100644 packages/gitbook/src/components/AIChat/AskAIParagraphButton/index.ts diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx new file mode 100644 index 0000000000..23d5945707 --- /dev/null +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx @@ -0,0 +1,81 @@ +'use client'; + +import fnv1a from '@sindresorhus/fnv1a'; + +import { useAIChatController, useAIConfig } from '@/components/AI'; +import { Button } from '@/components/primitives'; +import { t, tString, useLanguage } from '@/intl/client'; +import { type ClassValue, tcls } from '@/lib/tailwind'; + +import { getAIChatName } from '../AIChat'; +import { AIChatIcon } from '../AIChatIcon'; + +/** + * A small icon button revealed in the left margin of a top-level paragraph when it is hovered (on + * devices with a fine pointer). Clicking it stages the paragraph's text as a reference and opens + * the AI chat — a more discoverable variant of the text-selection "Ask" affordance. + * + * The button is absolutely positioned so it never affects the document flow, and its visibility is + * driven purely by the `group/ask-ai` hover state of its paragraph wrapper. + */ +export function AskAIParagraphButton(props: { content: string; className?: ClassValue }) { + const { content, className } = props; + const config = useAIConfig(); + const language = useLanguage(); + const chatController = useAIChatController(); + + const onClick = () => { + const text = content.trim(); + if (!text) { + return; + } + + chatController.addReference({ + type: 'text', + id: `text-${fnv1a(text, { size: 32 })}`, + content: text, + }); + chatController.open(); + chatController.focus(); + }; + + return ( + + ); +} diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/index.ts b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/index.ts new file mode 100644 index 0000000000..5b7c3c94c6 --- /dev/null +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/index.ts @@ -0,0 +1 @@ +export * from './AskAIParagraphButton'; diff --git a/packages/gitbook/src/components/AIChat/index.ts b/packages/gitbook/src/components/AIChat/index.ts index 57307673aa..f74539c07b 100644 --- a/packages/gitbook/src/components/AIChat/index.ts +++ b/packages/gitbook/src/components/AIChat/index.ts @@ -4,3 +4,4 @@ export * from './AIChatIcon'; export * from './AIResponseFeedback'; export * from './AIChatControlButton'; export * from './AskAITextSelection'; +export * from './AskAIParagraphButton'; diff --git a/packages/gitbook/src/components/DocumentView/Paragraph.tsx b/packages/gitbook/src/components/DocumentView/Paragraph.tsx index 9ba46fa59f..d2f475acfc 100644 --- a/packages/gitbook/src/components/DocumentView/Paragraph.tsx +++ b/packages/gitbook/src/components/DocumentView/Paragraph.tsx @@ -1,5 +1,8 @@ import type { DocumentBlockParagraph } from '@gitbook/api'; +import { CustomizationAIMode } from '@gitbook/api'; +import { AskAIParagraphButton } from '@/components/AIChat/AskAIParagraphButton'; +import { getNodeText } from '@/lib/document'; import { tcls } from '@/lib/tailwind'; import type { BlockProps } from './Block'; @@ -8,14 +11,35 @@ import { getTextAlignment } from './utils'; export function Paragraph(props: BlockProps) { const { block, style, ...contextProps } = props; + const { context } = contextProps; // InlineActionButtons use flex-grow to take the available width. This requires the parent to be a flex container. const inlineButtonStyle = 'has-[.button,input]:flex has-[.button,input]:flex-wrap has-[.button,input]:gap-2 has-[.button,input]:items-center'; - return ( + const paragraph = (

); + + // Offer to ask the assistant about any paragraph, in Assistant mode, on screen. + const contentContext = context.contentContext; + const aiAssistantEnabled = + context.mode !== 'print' && + contentContext != null && + 'customization' in contentContext && + contentContext.customization.ai.mode === CustomizationAIMode.Assistant; + + const text = aiAssistantEnabled ? getNodeText(block) : ''; + if (aiAssistantEnabled && text.trim()) { + return ( +
+ {paragraph} + +
+ ); + } + + return paragraph; } diff --git a/packages/gitbook/src/components/PageActions/PageActions.tsx b/packages/gitbook/src/components/PageActions/PageActions.tsx index c5fd6d28cb..209c35e059 100644 --- a/packages/gitbook/src/components/PageActions/PageActions.tsx +++ b/packages/gitbook/src/components/PageActions/PageActions.tsx @@ -45,7 +45,12 @@ export function ActionOpenAssistant(props: { icon={assistant.icon} label={assistant.label} shortLabel={tString(language, 'ask')} - description={tString(language, 'ai_chat_ask_about_page', assistant.label)} + description={tString( + language, + 'ai_chat_ask_about', + assistant.label, + tString(language, 'this_page') + )} disabled={chat.responding} onClick={() => { // Stage a reference to the current page so the assistant is informed about @@ -213,7 +218,12 @@ export function ActionOpenInLLM(props: { icon={provider} label={tString(language, 'open_in', providerLabel)} shortLabel={providerLabel} - description={tString(language, 'ai_chat_ask_about_page', providerLabel)} + description={tString( + language, + 'ai_chat_ask_about', + providerLabel, + tString(language, 'this_page') + )} href={getURLForLLM(provider, prompt)} /> ); diff --git a/packages/gitbook/src/intl/translations/ar.ts b/packages/gitbook/src/intl/translations/ar.ts index 11c8b72b87..6536da5cd7 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -145,7 +145,9 @@ export const ar: TranslationLanguage = { ai_chat_tools_navigate_failed: 'تعذّر فتح الصفحة', ai_chat_tools_mcp_tool: 'تم استدعاء ${1}', ai_chat_ask: 'اسأل ${1}', - ai_chat_ask_about_page: 'اسأل ${1} عن هذه الصفحة', + ai_chat_ask_about: 'اسأل ${1} عن ${2}', + this_page: 'هذه الصفحة', + this_text: 'هذا النص', ai_chat_ask_query: 'اسأل ${1} "${2}"', copy_for_llms: 'نسخ للنماذج اللغوية الكبيرة', copy_page_markdown: 'نسخ الصفحة بصيغة Markdown للنماذج اللغوية الكبيرة', diff --git a/packages/gitbook/src/intl/translations/bg.ts b/packages/gitbook/src/intl/translations/bg.ts index 5394bd2b41..144d3f197f 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -149,7 +149,9 @@ export const bg: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Страницата не може да бъде отворена', ai_chat_tools_mcp_tool: 'Извика ${1}', ai_chat_ask: 'Попитайте ${1}', - ai_chat_ask_about_page: 'Попитайте ${1} за тази страница', + ai_chat_ask_about: 'Попитайте ${1} за ${2}', + this_page: 'тази страница', + this_text: 'този текст', ai_chat_ask_query: 'Попитайте ${1} "${2}"', copy_for_llms: 'Копиране за LLM', copy_page_markdown: 'Копиране на страницата като Markdown за LLM', diff --git a/packages/gitbook/src/intl/translations/cs.ts b/packages/gitbook/src/intl/translations/cs.ts index 228f95b084..4ad548064e 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -147,7 +147,9 @@ export const cs: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Stránku se nepodařilo otevřít', ai_chat_tools_mcp_tool: 'Zavolal ${1}', ai_chat_ask: 'Zeptat se ${1}', - ai_chat_ask_about_page: 'Zeptat se ${1} na tuto stránku', + ai_chat_ask_about: 'Zeptat se ${1} na ${2}', + this_page: 'tuto stránku', + this_text: 'tento text', ai_chat_ask_query: 'Zeptat se ${1} "${2}"', copy_for_llms: 'Kopírovat pro LLM', copy_page_markdown: 'Kopírovat stránku jako Markdown pro LLM', diff --git a/packages/gitbook/src/intl/translations/da.ts b/packages/gitbook/src/intl/translations/da.ts index f3d1f4ae84..6b50612643 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -146,7 +146,9 @@ export const da: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Kunne ikke åbne siden', ai_chat_tools_mcp_tool: 'Kaldte ${1}', ai_chat_ask: 'Spørg ${1}', - ai_chat_ask_about_page: 'Spørg ${1} om denne side', + ai_chat_ask_about: 'Spørg ${1} om ${2}', + this_page: 'denne side', + this_text: 'denne tekst', ai_chat_ask_query: 'Spørg ${1} "${2}"', copy_for_llms: 'Kopiér til LLMer', copy_page_markdown: 'Kopiér siden som Markdown til LLMer', diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index 2338f71211..f859691224 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -153,7 +153,9 @@ export const de: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Seite konnte nicht geöffnet werden', ai_chat_tools_mcp_tool: '${1} aufgerufen', ai_chat_ask: '${1} fragen', - ai_chat_ask_about_page: '${1} zu dieser Seite befragen', + ai_chat_ask_about: '${1} zu ${2} befragen', + this_page: 'dieser Seite', + this_text: 'diesem Text', copy_for_llms: 'Für LLMs kopieren', copy_page_markdown: 'Seite als Markdown für LLMs kopieren', copy_page: 'Seite kopieren', diff --git a/packages/gitbook/src/intl/translations/el.ts b/packages/gitbook/src/intl/translations/el.ts index 0659975b82..a0b1ec6e28 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -151,7 +151,9 @@ export const el: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Αποτυχία ανοίγματος της σελίδας', ai_chat_tools_mcp_tool: 'Κλήθηκε ${1}', ai_chat_ask: 'Ρωτήστε ${1}', - ai_chat_ask_about_page: 'Ρωτήστε ${1} για αυτήν τη σελίδα', + ai_chat_ask_about: 'Ρωτήστε ${1} για ${2}', + this_page: 'αυτή τη σελίδα', + this_text: 'αυτό το κείμενο', ai_chat_ask_query: 'Ρωτήστε ${1} "${2}"', copy_for_llms: 'Αντιγραφή για LLM', copy_page_markdown: 'Αντιγραφή σελίδας ως Markdown για LLM', diff --git a/packages/gitbook/src/intl/translations/en.ts b/packages/gitbook/src/intl/translations/en.ts index 9bae2e462d..a5ad8b3243 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -144,8 +144,10 @@ export const en = { ai_chat_tools_navigate_failed: 'Failed to open the page', ai_chat_tools_mcp_tool: 'Called ${1}', ai_chat_ask: 'Ask ${1}', - ai_chat_ask_about_page: 'Ask ${1} about this page', + ai_chat_ask_about: 'Ask ${1} about ${2}', ai_chat_ask_query: 'Ask ${1} "${2}"', + this_page: 'this page', + this_text: 'this text', copy_for_llms: 'Copy for LLMs', copy_page_markdown: 'Copy page as Markdown for LLMs', copy_page: 'Copy page', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index a412615df4..1b4a50b01f 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -151,7 +151,9 @@ export const es: TranslationLanguage = { ai_chat_tools_navigate_failed: 'No se pudo abrir la página', ai_chat_tools_mcp_tool: 'Llamó a ${1}', ai_chat_ask: 'Preguntar a ${1}', - ai_chat_ask_about_page: 'Preguntar a ${1} sobre esta página', + ai_chat_ask_about: 'Preguntar a ${1} sobre ${2}', + this_page: 'esta página', + this_text: 'este texto', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', copy_page: 'Copiar página', diff --git a/packages/gitbook/src/intl/translations/et.ts b/packages/gitbook/src/intl/translations/et.ts index 363eac60f2..691d504722 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -146,7 +146,9 @@ export const et: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Lehe avamine ebaõnnestus', ai_chat_tools_mcp_tool: 'Kutsus ${1}', ai_chat_ask: 'Küsi ${1}', - ai_chat_ask_about_page: 'Küsi ${1} selle lehe kohta', + ai_chat_ask_about: 'Küsi ${1}: ${2}', + this_page: 'seda lehte', + this_text: 'seda teksti', ai_chat_ask_query: 'Küsi ${1} "${2}"', copy_for_llms: 'Kopeeri LLM-idele', copy_page_markdown: 'Kopeeri leht Markdownina LLM-idele', diff --git a/packages/gitbook/src/intl/translations/fi.ts b/packages/gitbook/src/intl/translations/fi.ts index ae8741f3ca..40624e9d30 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -148,7 +148,9 @@ export const fi: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Sivun avaaminen epäonnistui', ai_chat_tools_mcp_tool: 'Kutsuttiin ${1}', ai_chat_ask: 'Kysy ${1}', - ai_chat_ask_about_page: 'Kysy ${1} tältä sivulta', + ai_chat_ask_about: 'Kysy ${1}: ${2}', + this_page: 'tätä sivua', + this_text: 'tätä tekstiä', ai_chat_ask_query: 'Kysy ${1}: "${2}"', copy_for_llms: 'Kopioi LLM:ille', copy_page_markdown: 'Kopioi sivu Markdownina LLM:ille', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 85c69531f8..346812e3a9 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -147,7 +147,9 @@ export const fr: TranslationLanguage = { ai_chat_tools_navigate_failed: "Échec de l'ouverture de la page", ai_chat_tools_mcp_tool: 'A appelé ${1}', ai_chat_ask: 'Demander à ${1}', - ai_chat_ask_about_page: 'Demander à ${1} à propos de cette page', + ai_chat_ask_about: 'Demander à ${1} à propos de ${2}', + this_page: 'cette page', + this_text: 'ce texte', copy_for_llms: 'Copier pour un LLM', copy_page_markdown: 'Copier la page en Markdown pour un LLM', copy_page: 'Copier la page', diff --git a/packages/gitbook/src/intl/translations/he.ts b/packages/gitbook/src/intl/translations/he.ts index 5403a7b989..feaac9a208 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -144,7 +144,9 @@ export const he: TranslationLanguage = { ai_chat_tools_navigate_failed: 'פתיחת הדף נכשלה', ai_chat_tools_mcp_tool: 'קרא ל-${1}', ai_chat_ask: 'שאל את ${1}', - ai_chat_ask_about_page: 'שאל את ${1} על הדף הזה', + ai_chat_ask_about: 'שאל את ${1} על ${2}', + this_page: 'הדף הזה', + this_text: 'הטקסט הזה', ai_chat_ask_query: 'שאל את ${1} "${2}"', copy_for_llms: 'העתקה עבור LLMs', copy_page_markdown: 'העתקת הדף כ-Markdown עבור LLMs', diff --git a/packages/gitbook/src/intl/translations/hi.ts b/packages/gitbook/src/intl/translations/hi.ts index fd0cf588bd..30ffb0e5a5 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -145,7 +145,9 @@ export const hi: TranslationLanguage = { ai_chat_tools_navigate_failed: 'पेज खोलने में विफल', ai_chat_tools_mcp_tool: '${1} को कॉल किया', ai_chat_ask: '${1} से पूछें', - ai_chat_ask_about_page: 'इस पृष्ठ के बारे में ${1} से पूछें', + ai_chat_ask_about: '${1} से ${2} के बारे में पूछें', + this_page: 'इस पृष्ठ', + this_text: 'इस पाठ', ai_chat_ask_query: '${1} से "${2}" पूछें', copy_for_llms: 'LLM के लिए कॉपी करें', copy_page_markdown: 'पृष्ठ को LLM के लिए Markdown के रूप में कॉपी करें', diff --git a/packages/gitbook/src/intl/translations/hr.ts b/packages/gitbook/src/intl/translations/hr.ts index 26a9963297..48b8f53490 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -147,7 +147,9 @@ export const hr: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Stranicu nije moguće otvoriti', ai_chat_tools_mcp_tool: 'Pozvao ${1}', ai_chat_ask: 'Pitaj ${1}', - ai_chat_ask_about_page: 'Pitaj ${1} o ovoj stranici', + ai_chat_ask_about: 'Pitaj ${1} o ${2}', + this_page: 'ova stranica', + this_text: 'ovaj tekst', ai_chat_ask_query: 'Pitaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM-ove', copy_page_markdown: 'Kopiraj stranicu kao Markdown za LLM-ove', diff --git a/packages/gitbook/src/intl/translations/hu.ts b/packages/gitbook/src/intl/translations/hu.ts index 4fbcf30173..0da683c5c9 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -148,7 +148,9 @@ export const hu: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Az oldal megnyitása sikertelen', ai_chat_tools_mcp_tool: '${1} meghívva', ai_chat_ask: '${1} kérdezése', - ai_chat_ask_about_page: '${1} kérdezése erről az oldalról', + ai_chat_ask_about: '${1} megkérdezése ${2} témában', + this_page: 'ez az oldal', + this_text: 'ez a szöveg', ai_chat_ask_query: '${1} kérdezése: "${2}"', copy_for_llms: 'Másolás LLM-ekhez', copy_page_markdown: 'Oldal másolása Markdownként LLM-ekhez', diff --git a/packages/gitbook/src/intl/translations/id.ts b/packages/gitbook/src/intl/translations/id.ts index 3c1df2a3a1..adb6b3235d 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -146,7 +146,9 @@ export const id: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Gagal membuka halaman', ai_chat_tools_mcp_tool: 'Memanggil ${1}', ai_chat_ask: 'Tanya ${1}', - ai_chat_ask_about_page: 'Tanya ${1} tentang halaman ini', + ai_chat_ask_about: 'Tanya ${1} tentang ${2}', + this_page: 'halaman ini', + this_text: 'teks ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', copy_page_markdown: 'Salin halaman sebagai Markdown untuk LLM', diff --git a/packages/gitbook/src/intl/translations/it.ts b/packages/gitbook/src/intl/translations/it.ts index b8f281bf76..618c4d35fc 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -150,7 +150,9 @@ export const it: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Impossibile aprire la pagina', ai_chat_tools_mcp_tool: 'Ha chiamato ${1}', ai_chat_ask: 'Chiedi a ${1}', - ai_chat_ask_about_page: 'Chiedi a ${1} riguardo a questa pagina', + ai_chat_ask_about: 'Chiedi a ${1} riguardo a ${2}', + this_page: 'questa pagina', + this_text: 'questo testo', copy_for_llms: 'Copia per LLM', copy_page_markdown: 'Copia la pagina come Markdown per LLM', copy_page: 'Copia pagina', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index 319ea4f582..3dff782724 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -147,7 +147,9 @@ export const ja: TranslationLanguage = { ai_chat_tools_navigate_failed: 'ページを開けませんでした', ai_chat_tools_mcp_tool: '${1} を呼び出しました', ai_chat_ask: '${1} に質問する', - ai_chat_ask_about_page: 'このページについて ${1} に質問する', + ai_chat_ask_about: '${1}に${2}について質問する', + this_page: 'このページ', + this_text: 'このテキスト', copy_for_llms: 'LLM 用にコピー', copy_page_markdown: 'ページを Markdown として LLM 用にコピー', copy_page: 'ページをコピー', diff --git a/packages/gitbook/src/intl/translations/ko.ts b/packages/gitbook/src/intl/translations/ko.ts index 1048a30a2b..7214a6e10b 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -146,7 +146,9 @@ export const ko: TranslationLanguage = { ai_chat_tools_navigate_failed: '페이지를 열지 못했습니다', ai_chat_tools_mcp_tool: '${1} 호출함', ai_chat_ask: '${1}에게 질문', - ai_chat_ask_about_page: '이 페이지에 대해 ${1}에게 질문', + ai_chat_ask_about: '${1}에게 ${2}에 대해 질문', + this_page: '이 페이지', + this_text: '이 텍스트', copy_for_llms: 'LLM용 복사', copy_page_markdown: 'LLM용으로 페이지를 Markdown으로 복사', copy_page: '페이지 복사', diff --git a/packages/gitbook/src/intl/translations/lt.ts b/packages/gitbook/src/intl/translations/lt.ts index e6c1a7bc37..036f4051f9 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -147,7 +147,9 @@ export const lt: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Nepavyko atidaryti puslapio', ai_chat_tools_mcp_tool: 'Iškviesta ${1}', ai_chat_ask: 'Klausti ${1}', - ai_chat_ask_about_page: 'Klausti ${1} apie šį puslapį', + ai_chat_ask_about: 'Klausti ${1} apie ${2}', + this_page: 'šį puslapį', + this_text: 'šį tekstą', ai_chat_ask_query: 'Klausti ${1} "${2}"', copy_for_llms: 'Kopijuoti LLM', copy_page_markdown: 'Kopijuoti puslapį kaip Markdown LLM', diff --git a/packages/gitbook/src/intl/translations/lv.ts b/packages/gitbook/src/intl/translations/lv.ts index 634146f902..1c41cc5eb6 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -145,7 +145,9 @@ export const lv: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Neizdevās atvērt lapu', ai_chat_tools_mcp_tool: 'Izsauca ${1}', ai_chat_ask: 'Jautāt ${1}', - ai_chat_ask_about_page: 'Jautāt ${1} par šo lapu', + ai_chat_ask_about: 'Jautāt ${1} par ${2}', + this_page: 'šo lapu', + this_text: 'šo tekstu', ai_chat_ask_query: 'Jautāt ${1} "${2}"', copy_for_llms: 'Kopēt LLM vajadzībām', copy_page_markdown: 'Kopēt lapu kā Markdown LLM vajadzībām', diff --git a/packages/gitbook/src/intl/translations/ms.ts b/packages/gitbook/src/intl/translations/ms.ts index 2d54ae41af..59d376802b 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -146,7 +146,9 @@ export const ms: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Gagal membuka halaman', ai_chat_tools_mcp_tool: 'Memanggil ${1}', ai_chat_ask: 'Tanya ${1}', - ai_chat_ask_about_page: 'Tanya ${1} tentang halaman ini', + ai_chat_ask_about: 'Tanya ${1} tentang ${2}', + this_page: 'halaman ini', + this_text: 'teks ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', copy_page_markdown: 'Salin halaman sebagai Markdown untuk LLM', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index 9296b0d766..55af0347a1 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -149,7 +149,9 @@ export const nl: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Kan de pagina niet openen', ai_chat_tools_mcp_tool: '${1} aangeroepen', ai_chat_ask: 'Vraag het aan ${1}', - ai_chat_ask_about_page: 'Vraag ${1} naar deze pagina', + ai_chat_ask_about: 'Stel ${1} een vraag over ${2}', + this_page: 'deze pagina', + this_text: 'deze tekst', copy_for_llms: 'Kopiëren voor LLMs', copy_page_markdown: 'Pagina kopiëren als Markdown voor LLMs', copy_page: 'Pagina kopiëren', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index f4e69fa59c..012cb5b982 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -148,7 +148,9 @@ export const no: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Kunne ikke åpne siden', ai_chat_tools_mcp_tool: 'Kalte ${1}', ai_chat_ask: 'Spør ${1}', - ai_chat_ask_about_page: 'Spør ${1} om denne siden', + ai_chat_ask_about: 'Spør ${1} om ${2}', + this_page: 'denne siden', + this_text: 'denne teksten', copy_for_llms: 'Kopier for LLMs', copy_page_markdown: 'Kopier siden som Markdown for LLMs', copy_page: 'Kopier side', diff --git a/packages/gitbook/src/intl/translations/pl.ts b/packages/gitbook/src/intl/translations/pl.ts index 6d00f63006..d557aa366d 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -147,7 +147,9 @@ export const pl: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Nie udało się otworzyć strony', ai_chat_tools_mcp_tool: 'Wywołano ${1}', ai_chat_ask: 'Zapytaj ${1}', - ai_chat_ask_about_page: 'Zapytaj ${1} o tę stronę', + ai_chat_ask_about: 'Zapytaj ${1} o ${2}', + this_page: 'tę stronę', + this_text: 'ten tekst', ai_chat_ask_query: 'Zapytaj ${1} "${2}"', copy_for_llms: 'Kopiuj dla LLM', copy_page_markdown: 'Kopiuj stronę jako Markdown dla LLM', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index a3a8d21e0c..98d55b5744 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -151,7 +151,9 @@ export const pt_br: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Falha ao abrir a página', ai_chat_tools_mcp_tool: 'Chamou ${1}', ai_chat_ask: 'Perguntar a ${1}', - ai_chat_ask_about_page: 'Perguntar a ${1} sobre esta página', + ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', + this_page: 'esta página', + this_text: 'este texto', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', copy_page: 'Copiar página', diff --git a/packages/gitbook/src/intl/translations/pt.ts b/packages/gitbook/src/intl/translations/pt.ts index 4364a608ea..138aa8b086 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -148,7 +148,9 @@ export const pt: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Falha ao abrir a página', ai_chat_tools_mcp_tool: 'Chamou ${1}', ai_chat_ask: 'Perguntar a ${1}', - ai_chat_ask_about_page: 'Perguntar a ${1} sobre esta página', + ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', + this_page: 'esta página', + this_text: 'este texto', ai_chat_ask_query: 'Perguntar a ${1} "${2}"', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', diff --git a/packages/gitbook/src/intl/translations/ro.ts b/packages/gitbook/src/intl/translations/ro.ts index 4fbdb72b6a..78aec567c0 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -150,7 +150,9 @@ export const ro: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Deschiderea paginii a eșuat', ai_chat_tools_mcp_tool: 'A apelat ${1}', ai_chat_ask: 'Întreabă ${1}', - ai_chat_ask_about_page: 'Întreabă ${1} despre această pagină', + ai_chat_ask_about: 'Întreabă ${1} despre ${2}', + this_page: 'această pagină', + this_text: 'acest text', ai_chat_ask_query: 'Întreabă ${1} "${2}"', copy_for_llms: 'Copiază pentru LLM-uri', copy_page_markdown: 'Copiază pagina ca Markdown pentru LLM-uri', diff --git a/packages/gitbook/src/intl/translations/ru.ts b/packages/gitbook/src/intl/translations/ru.ts index 5464396f8c..7d98a72614 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -150,7 +150,9 @@ export const ru: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Не удалось открыть страницу', ai_chat_tools_mcp_tool: 'Вызван ${1}', ai_chat_ask: 'Спросить у ${1}', - ai_chat_ask_about_page: 'Спросить у ${1} об этой странице', + ai_chat_ask_about: 'Спросить у ${1} о ${2}', + this_page: 'этой странице', + this_text: 'этом тексте', copy_for_llms: 'Скопировать для LLM', copy_page_markdown: 'Скопировать страницу как Markdown для LLM', copy_page: 'Скопировать страницу', diff --git a/packages/gitbook/src/intl/translations/sk.ts b/packages/gitbook/src/intl/translations/sk.ts index 7651895f99..0a83dc0dfe 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -149,7 +149,9 @@ export const sk: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Stránku sa nepodarilo otvoriť', ai_chat_tools_mcp_tool: 'Zavolal ${1}', ai_chat_ask: 'Opýtať sa ${1}', - ai_chat_ask_about_page: 'Opýtať sa ${1} na túto stránku', + ai_chat_ask_about: 'Opýtať sa ${1} na ${2}', + this_page: 'túto stránku', + this_text: 'tento text', ai_chat_ask_query: 'Opýtať sa ${1} "${2}"', copy_for_llms: 'Kopírovať pre LLM', copy_page_markdown: 'Kopírovať stránku ako Markdown pre LLM', diff --git a/packages/gitbook/src/intl/translations/sl.ts b/packages/gitbook/src/intl/translations/sl.ts index 8fe0d34ea8..f869bc52a2 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -147,7 +147,9 @@ export const sl: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Strani ni bilo mogoče odpreti', ai_chat_tools_mcp_tool: 'Poklicano ${1}', ai_chat_ask: 'Vprašaj ${1}', - ai_chat_ask_about_page: 'Vprašaj ${1} o tej strani', + ai_chat_ask_about: 'Vprašaj ${1} o ${2}', + this_page: 'to stran', + this_text: 'to besedilo', ai_chat_ask_query: 'Vprašaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM', copy_page_markdown: 'Kopiraj stran kot Markdown za LLM', diff --git a/packages/gitbook/src/intl/translations/sv.ts b/packages/gitbook/src/intl/translations/sv.ts index 511b0cba78..5c4deb1e4a 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -147,7 +147,9 @@ export const sv: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Det gick inte att öppna sidan', ai_chat_tools_mcp_tool: 'Anropade ${1}', ai_chat_ask: 'Fråga ${1}', - ai_chat_ask_about_page: 'Fråga ${1} om den här sidan', + ai_chat_ask_about: 'Fråga ${1} om ${2}', + this_page: 'den här sidan', + this_text: 'den här texten', ai_chat_ask_query: 'Fråga ${1} "${2}"', copy_for_llms: 'Kopiera för LLM:er', copy_page_markdown: 'Kopiera sidan som Markdown för LLM:er', diff --git a/packages/gitbook/src/intl/translations/th.ts b/packages/gitbook/src/intl/translations/th.ts index 11102a0ce6..8e9c9a6480 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -143,7 +143,9 @@ export const th: TranslationLanguage = { ai_chat_tools_navigate_failed: 'ไม่สามารถเปิดหน้าได้', ai_chat_tools_mcp_tool: 'เรียกใช้ ${1}', ai_chat_ask: 'ถาม ${1}', - ai_chat_ask_about_page: 'ถาม ${1} เกี่ยวกับหน้านี้', + ai_chat_ask_about: 'ถาม ${1} เกี่ยวกับ ${2}', + this_page: 'หน้านี้', + this_text: 'ข้อความนี้', ai_chat_ask_query: 'ถาม ${1} "${2}"', copy_for_llms: 'คัดลอกสำหรับ LLM', copy_page_markdown: 'คัดลอกหน้าเป็น Markdown สำหรับ LLM', diff --git a/packages/gitbook/src/intl/translations/tr.ts b/packages/gitbook/src/intl/translations/tr.ts index a52d82cbe9..d8cf228766 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -145,7 +145,9 @@ export const tr: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Sayfa açılamadı', ai_chat_tools_mcp_tool: '${1} çağrıldı', ai_chat_ask: '${1} sor', - ai_chat_ask_about_page: 'Bu sayfa hakkında ${1} sor', + ai_chat_ask_about: '${1} için ${2} hakkında sor', + this_page: 'bu sayfa', + this_text: 'bu metin', ai_chat_ask_query: '${1} için "${2}" sor', copy_for_llms: 'LLM için kopyala', copy_page_markdown: 'Sayfayı LLM için Markdown olarak kopyala', diff --git a/packages/gitbook/src/intl/translations/uk.ts b/packages/gitbook/src/intl/translations/uk.ts index 8bfd026a87..91ed8991ca 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -145,7 +145,9 @@ export const uk: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Не вдалося відкрити сторінку', ai_chat_tools_mcp_tool: 'Викликано ${1}', ai_chat_ask: 'Запитати ${1}', - ai_chat_ask_about_page: 'Запитати ${1} про цю сторінку', + ai_chat_ask_about: 'Запитати ${1} про ${2}', + this_page: 'цю сторінку', + this_text: 'цей текст', ai_chat_ask_query: 'Запитати ${1} "${2}"', copy_for_llms: 'Копіювати для LLM', copy_page_markdown: 'Копіювати сторінку як Markdown для LLM', diff --git a/packages/gitbook/src/intl/translations/vi.ts b/packages/gitbook/src/intl/translations/vi.ts index f33f6c42e6..d023f9a6ac 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -145,7 +145,9 @@ export const vi: TranslationLanguage = { ai_chat_tools_navigate_failed: 'Không thể mở trang', ai_chat_tools_mcp_tool: 'Đã gọi ${1}', ai_chat_ask: 'Hỏi ${1}', - ai_chat_ask_about_page: 'Hỏi ${1} về trang này', + ai_chat_ask_about: 'Hỏi ${1} về ${2}', + this_page: 'trang này', + this_text: 'văn bản này', ai_chat_ask_query: 'Hỏi ${1} "${2}"', copy_for_llms: 'Sao chép cho LLM', copy_page_markdown: 'Sao chép trang dưới dạng Markdown cho LLM', diff --git a/packages/gitbook/src/intl/translations/yue.ts b/packages/gitbook/src/intl/translations/yue.ts index fbd172310e..399e0c808b 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -142,7 +142,9 @@ export const yue: TranslationLanguage = { ai_chat_tools_navigate_failed: '無法開啟頁面', ai_chat_tools_mcp_tool: '已呼叫 ${1}', ai_chat_ask: '問 ${1}', - ai_chat_ask_about_page: '問 ${1} 關於此頁面', + ai_chat_ask_about: '問 ${1} 關於${2}', + this_page: '此頁面', + this_text: '此文字', ai_chat_ask_query: '問 ${1}「${2}」', copy_for_llms: '複製俾 LLM 用', copy_page_markdown: '以 Markdown 複製頁面俾 LLM 用', diff --git a/packages/gitbook/src/intl/translations/zh-tw.ts b/packages/gitbook/src/intl/translations/zh-tw.ts index b9a2a7955d..02c2561654 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -142,7 +142,9 @@ export const zh_tw: TranslationLanguage = { ai_chat_tools_navigate_failed: '無法開啟頁面', ai_chat_tools_mcp_tool: '已呼叫 ${1}', ai_chat_ask: '詢問 ${1}', - ai_chat_ask_about_page: '詢問 ${1} 關於此頁面', + ai_chat_ask_about: '詢問 ${1} 關於${2}', + this_page: '此頁面', + this_text: '此文字', ai_chat_ask_query: '詢問 ${1}「${2}」', copy_for_llms: '複製給 LLM 使用', copy_page_markdown: '將頁面以 Markdown 複製給 LLM 使用', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 3749501c81..0b82fffcd9 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -143,7 +143,9 @@ export const zh: TranslationLanguage = { ai_chat_tools_navigate_failed: '无法打开页面', ai_chat_tools_mcp_tool: '调用了 ${1}', ai_chat_ask: '向 ${1} 提问', - ai_chat_ask_about_page: '向 ${1} 提问有关此页面的问题', + ai_chat_ask_about: '向 ${1} 询问${2}', + this_page: '此页面', + this_text: '此文本', copy_for_llms: '复制供 LLMs 使用', copy_page_markdown: '将页面以 Markdown 格式复制供 LLMs 使用', copy_page: '复制页面', From e7ebce02fed8b215dd0b641cf546426857bb0129 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Fri, 19 Jun 2026 17:26:24 +0200 Subject: [PATCH 2/6] changeset --- .changeset/ask-ai-paragraph-margin-button.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/ask-ai-paragraph-margin-button.md diff --git a/.changeset/ask-ai-paragraph-margin-button.md b/.changeset/ask-ai-paragraph-margin-button.md new file mode 100644 index 0000000000..a273e6a385 --- /dev/null +++ b/.changeset/ask-ai-paragraph-margin-button.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Add a hover affordance in the document margin to ask the AI Assistant about a paragraph. On devices with a fine pointer, hovering a top-level paragraph reveals a small button that stages the paragraph's text as context and opens the assistant — making the existing text-selection "Ask" flow more discoverable. From 9822e7659e066cdd884ce46f15a480f889509040 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Fri, 19 Jun 2026 17:34:31 +0200 Subject: [PATCH 3/6] Drop resting opacity on the paragraph ask button Show the button at full opacity when revealed instead of dimming it to 50%. Co-Authored-By: Claude Opus 4.8 --- .../AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx index 23d5945707..cb1641ede7 100644 --- a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx @@ -44,8 +44,7 @@ export function AskAIParagraphButton(props: { content: string; className?: Class className={tcls( // Sit in the left margin, flush against the paragraph so there is no hover gap. 'absolute top-0 right-full z-10 pr-1', - // Per-block nudges: `in-[…]` matches an ancestor (tag or class) with no markup - // changes elsewhere — add a self-contained rule per block type to clear its gutter. + // Per-block nudges (see blockContextOffset above). 'in-[.hint]:-top-0.5 in-[.hint]:pr-2', 'in-[blockquote]:pr-0', // Hover affordance only: hidden until the paragraph (or the button) is hovered. @@ -73,7 +72,7 @@ export function AskAIParagraphButton(props: { content: string; className?: Class onMouseDown={(event) => event.preventDefault()} className={tcls( 'bg-tint-base', - 'in-[.hint.bg-danger]:bg-danger in-[.hint.bg-info]:bg-info in-[.hint.bg-success]:bg-success in-[.hint.bg-warning]:bg-warning opacity-50 hover:opacity-100' + 'in-[.hint.bg-danger]:bg-danger in-[.hint.bg-info]:bg-info in-[.hint.bg-success]:bg-success in-[.hint.bg-warning]:bg-warning' )} /> From dfa81839b8d489b0d026c3091d2085a791e3e8ff Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Fri, 19 Jun 2026 17:38:41 +0200 Subject: [PATCH 4/6] Fix stale comment in AskAIParagraphButton MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The per-block nudge comment referenced a removed `blockContextOffset` constant; describe the inline `in-[…]` approach instead. Co-Authored-By: Claude Opus 4.8 --- .../AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx index cb1641ede7..f78119e716 100644 --- a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx @@ -44,7 +44,8 @@ export function AskAIParagraphButton(props: { content: string; className?: Class className={tcls( // Sit in the left margin, flush against the paragraph so there is no hover gap. 'absolute top-0 right-full z-10 pr-1', - // Per-block nudges (see blockContextOffset above). + // Per-block nudges: `in-[…]` matches an ancestor (tag or class) with no markup + // changes elsewhere — add a self-contained rule per block type to clear its gutter. 'in-[.hint]:-top-0.5 in-[.hint]:pr-2', 'in-[blockquote]:pr-0', // Hover affordance only: hidden until the paragraph (or the button) is hovered. From 6998c2e0b377da57eda8d1ab27de464823702383 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Wed, 1 Jul 2026 15:03:46 +0200 Subject: [PATCH 5/6] Pre-fill a draft prompt when asking about a paragraph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clicking the per-paragraph Ask button now seeds the chat input with an editable draft ("Tell me more about this") instead of an empty field — staged, focused, cursor at the end, and not sent, so the reader can tweak or send it. - useAIChat: add a `draft` state field and a `setDraft` controller method. - AIChatInput: consume the draft into the (now controlled) input, focus with the cursor at the end, then clear the pending draft so it applies once. - AskAIParagraphButton: stage the draft on click. - i18n: add `ai_chat_paragraph_draft` across all locales. Co-Authored-By: Claude Opus 4.8 --- .../gitbook/src/components/AI/useAIChat.tsx | 15 +++++++++++ .../src/components/AIChat/AIChatInput.tsx | 27 ++++++++++++++++++- .../AskAIParagraphButton.tsx | 1 + 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/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 + 42 files changed, 81 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/AI/useAIChat.tsx b/packages/gitbook/src/components/AI/useAIChat.tsx index 56df984ea4..44389b432f 100644 --- a/packages/gitbook/src/components/AI/useAIChat.tsx +++ b/packages/gitbook/src/components/AI/useAIChat.tsx @@ -117,6 +117,12 @@ export type AIChatState = { * References staged on the next user message. */ references: AIChatReference[]; + + /** + * Draft text to pre-fill the chat input with, without sending it. The chat input consumes + * this value (seeding its editable content) and then clears it back to an empty string. + */ + draft: string; }; export type AIChatEvent = @@ -150,6 +156,8 @@ export type AIChatController = { clearReferences: () => void; /** Focus the chat input */ focus: () => void; + /** Pre-fill the chat input with draft text, without sending it. */ + setDraft: (draft: string) => void; /** Register an event listener */ on: ( event: T, @@ -173,6 +181,7 @@ const globalState = zustand.create(() => { error: false, initialQuery: null, references: [], + draft: '', }; }); @@ -661,6 +670,10 @@ export function AIChatProvider(props: { notify(eventsRef.current.get('focus'), {}); }, []); + const onSetDraft = React.useCallback((draft: string) => { + globalState.setState({ draft }); + }, []); + const onEvent = React.useCallback( ( event: T, @@ -690,6 +703,7 @@ export function AIChatProvider(props: { removeReference: onRemoveReference, clearReferences: onClearReferences, focus: onFocus, + setDraft: onSetDraft, on: onEvent, }; }, [ @@ -701,6 +715,7 @@ export function AIChatProvider(props: { onRemoveReference, onClearReferences, onFocus, + onSetDraft, onEvent, ]); diff --git a/packages/gitbook/src/components/AIChat/AIChatInput.tsx b/packages/gitbook/src/components/AIChat/AIChatInput.tsx index 4e7b8c49d3..5e52ff8f4e 100644 --- a/packages/gitbook/src/components/AIChat/AIChatInput.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatInput.tsx @@ -1,7 +1,7 @@ import { t, tString, useLanguage } from '@/intl/client'; import { tcls } from '@/lib/tailwind'; import { Icon } from '@gitbook/icons'; -import { useEffect, useRef } from 'react'; +import { useEffect, useRef, useState } from 'react'; import { useHotkeys } from 'react-hotkeys-hook'; import { useAIChatController, useAIChatState } from '../AI/useAIChat'; import { HoverCard, HoverCardRoot, HoverCardTrigger } from '../primitives'; @@ -24,6 +24,29 @@ export function AIChatInput(props: { const inputRef = useRef(null); + // Controlled value so a pre-filled draft can be injected without sending it. + const [value, setValue] = useState(''); + + // Consume a draft staged via the controller (e.g. the per-paragraph "Ask" button): seed the + // input, focus it with the cursor at the end, then clear the pending draft so it is applied + // once and not re-injected on a later mount. + useEffect(() => { + if (!chat.draft) { + return; + } + setValue(chat.draft); + chatController.setDraft(''); + const raf = requestAnimationFrame(() => { + const el = inputRef.current; + if (el) { + el.focus(); + const end = el.value.length; + el.setSelectionRange(end, end); + } + }); + return () => cancelAnimationFrame(raf); + }, [chat.draft, chatController]); + useEffect(() => { if (chat.opened && !disabled && !responding) { // Add a small delay to ensure the input is rendered before focusing @@ -66,6 +89,8 @@ export function AIChatInput(props: { sizing="large" label="Assistant chat input" placeholder={tString(language, 'ai_chat_input_placeholder')} + value={value} + onValueChange={setValue} onSubmit={(val) => onSubmit(val as string)} submitButton={{ size: 'small', diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx index f78119e716..bd47ddb060 100644 --- a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx @@ -36,6 +36,7 @@ export function AskAIParagraphButton(props: { content: string; className?: Class content: text, }); chatController.open(); + chatController.setDraft(tString(language, 'ai_chat_paragraph_draft')); chatController.focus(); }; diff --git a/packages/gitbook/src/intl/translations/ar.ts b/packages/gitbook/src/intl/translations/ar.ts index 6536da5cd7..7a034c8c0d 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -148,6 +148,7 @@ export const ar: TranslationLanguage = { ai_chat_ask_about: 'اسأل ${1} عن ${2}', this_page: 'هذه الصفحة', this_text: 'هذا النص', + ai_chat_paragraph_draft: 'أخبرني المزيد عن هذا', ai_chat_ask_query: 'اسأل ${1} "${2}"', copy_for_llms: 'نسخ للنماذج اللغوية الكبيرة', copy_page_markdown: 'نسخ الصفحة بصيغة Markdown للنماذج اللغوية الكبيرة', diff --git a/packages/gitbook/src/intl/translations/bg.ts b/packages/gitbook/src/intl/translations/bg.ts index 144d3f197f..301e304e90 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -152,6 +152,7 @@ export const bg: TranslationLanguage = { ai_chat_ask_about: 'Попитайте ${1} за ${2}', this_page: 'тази страница', this_text: 'този текст', + ai_chat_paragraph_draft: 'Кажи ми повече за това', ai_chat_ask_query: 'Попитайте ${1} "${2}"', copy_for_llms: 'Копиране за LLM', copy_page_markdown: 'Копиране на страницата като Markdown за LLM', diff --git a/packages/gitbook/src/intl/translations/cs.ts b/packages/gitbook/src/intl/translations/cs.ts index 4ad548064e..989edca4ba 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -150,6 +150,7 @@ export const cs: TranslationLanguage = { ai_chat_ask_about: 'Zeptat se ${1} na ${2}', this_page: 'tuto stránku', this_text: 'tento text', + ai_chat_paragraph_draft: 'Řekni mi o tom více', ai_chat_ask_query: 'Zeptat se ${1} "${2}"', copy_for_llms: 'Kopírovat pro LLM', copy_page_markdown: 'Kopírovat stránku jako Markdown pro LLM', diff --git a/packages/gitbook/src/intl/translations/da.ts b/packages/gitbook/src/intl/translations/da.ts index 6b50612643..61fec5c3d8 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -149,6 +149,7 @@ export const da: TranslationLanguage = { ai_chat_ask_about: 'Spørg ${1} om ${2}', this_page: 'denne side', this_text: 'denne tekst', + ai_chat_paragraph_draft: 'Fortæl mig mere om dette', ai_chat_ask_query: 'Spørg ${1} "${2}"', copy_for_llms: 'Kopiér til LLMer', copy_page_markdown: 'Kopiér siden som Markdown til LLMer', diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index f859691224..fdda97aca1 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -156,6 +156,7 @@ export const de: TranslationLanguage = { ai_chat_ask_about: '${1} zu ${2} befragen', this_page: 'dieser Seite', this_text: 'diesem Text', + ai_chat_paragraph_draft: 'Erzähl mir mehr darüber', copy_for_llms: 'Für LLMs kopieren', copy_page_markdown: 'Seite als Markdown für LLMs kopieren', copy_page: 'Seite kopieren', diff --git a/packages/gitbook/src/intl/translations/el.ts b/packages/gitbook/src/intl/translations/el.ts index a0b1ec6e28..e7874d6f28 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -154,6 +154,7 @@ export const el: TranslationLanguage = { ai_chat_ask_about: 'Ρωτήστε ${1} για ${2}', this_page: 'αυτή τη σελίδα', this_text: 'αυτό το κείμενο', + ai_chat_paragraph_draft: 'Πες μου περισσότερα για αυτό', ai_chat_ask_query: 'Ρωτήστε ${1} "${2}"', copy_for_llms: 'Αντιγραφή για LLM', copy_page_markdown: 'Αντιγραφή σελίδας ως Markdown για LLM', diff --git a/packages/gitbook/src/intl/translations/en.ts b/packages/gitbook/src/intl/translations/en.ts index a5ad8b3243..d125bcf813 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -148,6 +148,7 @@ export const en = { ai_chat_ask_query: 'Ask ${1} "${2}"', this_page: 'this page', this_text: 'this text', + ai_chat_paragraph_draft: 'Tell me more about this', copy_for_llms: 'Copy for LLMs', copy_page_markdown: 'Copy page as Markdown for LLMs', copy_page: 'Copy page', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index 1b4a50b01f..19bcaf53fe 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -154,6 +154,7 @@ export const es: TranslationLanguage = { ai_chat_ask_about: 'Preguntar a ${1} sobre ${2}', this_page: 'esta página', this_text: 'este texto', + ai_chat_paragraph_draft: 'Cuéntame más sobre esto', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', copy_page: 'Copiar página', diff --git a/packages/gitbook/src/intl/translations/et.ts b/packages/gitbook/src/intl/translations/et.ts index 691d504722..11c665c1ca 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -149,6 +149,7 @@ export const et: TranslationLanguage = { ai_chat_ask_about: 'Küsi ${1}: ${2}', this_page: 'seda lehte', this_text: 'seda teksti', + ai_chat_paragraph_draft: 'Räägi mulle sellest lähemalt', ai_chat_ask_query: 'Küsi ${1} "${2}"', copy_for_llms: 'Kopeeri LLM-idele', copy_page_markdown: 'Kopeeri leht Markdownina LLM-idele', diff --git a/packages/gitbook/src/intl/translations/fi.ts b/packages/gitbook/src/intl/translations/fi.ts index 40624e9d30..057f1c3db6 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -151,6 +151,7 @@ export const fi: TranslationLanguage = { ai_chat_ask_about: 'Kysy ${1}: ${2}', this_page: 'tätä sivua', this_text: 'tätä tekstiä', + ai_chat_paragraph_draft: 'Kerro minulle tästä lisää', ai_chat_ask_query: 'Kysy ${1}: "${2}"', copy_for_llms: 'Kopioi LLM:ille', copy_page_markdown: 'Kopioi sivu Markdownina LLM:ille', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 346812e3a9..3c4440e530 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -150,6 +150,7 @@ export const fr: TranslationLanguage = { ai_chat_ask_about: 'Demander à ${1} à propos de ${2}', this_page: 'cette page', this_text: 'ce texte', + ai_chat_paragraph_draft: 'En savoir plus à ce sujet', copy_for_llms: 'Copier pour un LLM', copy_page_markdown: 'Copier la page en Markdown pour un LLM', copy_page: 'Copier la page', diff --git a/packages/gitbook/src/intl/translations/he.ts b/packages/gitbook/src/intl/translations/he.ts index feaac9a208..2ac20d45fc 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -147,6 +147,7 @@ export const he: TranslationLanguage = { ai_chat_ask_about: 'שאל את ${1} על ${2}', this_page: 'הדף הזה', this_text: 'הטקסט הזה', + ai_chat_paragraph_draft: 'ספר לי עוד על זה', ai_chat_ask_query: 'שאל את ${1} "${2}"', copy_for_llms: 'העתקה עבור LLMs', copy_page_markdown: 'העתקת הדף כ-Markdown עבור LLMs', diff --git a/packages/gitbook/src/intl/translations/hi.ts b/packages/gitbook/src/intl/translations/hi.ts index 30ffb0e5a5..42dc791619 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -148,6 +148,7 @@ export const hi: TranslationLanguage = { ai_chat_ask_about: '${1} से ${2} के बारे में पूछें', this_page: 'इस पृष्ठ', this_text: 'इस पाठ', + ai_chat_paragraph_draft: 'इसके बारे में और बताएं', ai_chat_ask_query: '${1} से "${2}" पूछें', copy_for_llms: 'LLM के लिए कॉपी करें', copy_page_markdown: 'पृष्ठ को LLM के लिए Markdown के रूप में कॉपी करें', diff --git a/packages/gitbook/src/intl/translations/hr.ts b/packages/gitbook/src/intl/translations/hr.ts index 48b8f53490..f0240e7373 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -150,6 +150,7 @@ export const hr: TranslationLanguage = { ai_chat_ask_about: 'Pitaj ${1} o ${2}', this_page: 'ova stranica', this_text: 'ovaj tekst', + ai_chat_paragraph_draft: 'Reci mi više o ovome', ai_chat_ask_query: 'Pitaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM-ove', copy_page_markdown: 'Kopiraj stranicu kao Markdown za LLM-ove', diff --git a/packages/gitbook/src/intl/translations/hu.ts b/packages/gitbook/src/intl/translations/hu.ts index 0da683c5c9..7ea92cd5d5 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -151,6 +151,7 @@ export const hu: TranslationLanguage = { ai_chat_ask_about: '${1} megkérdezése ${2} témában', this_page: 'ez az oldal', this_text: 'ez a szöveg', + ai_chat_paragraph_draft: 'Mesélj erről többet', ai_chat_ask_query: '${1} kérdezése: "${2}"', copy_for_llms: 'Másolás LLM-ekhez', copy_page_markdown: 'Oldal másolása Markdownként LLM-ekhez', diff --git a/packages/gitbook/src/intl/translations/id.ts b/packages/gitbook/src/intl/translations/id.ts index adb6b3235d..83292a714b 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -149,6 +149,7 @@ export const id: TranslationLanguage = { ai_chat_ask_about: 'Tanya ${1} tentang ${2}', this_page: 'halaman ini', this_text: 'teks ini', + ai_chat_paragraph_draft: 'Ceritakan lebih banyak tentang ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', copy_page_markdown: 'Salin halaman sebagai Markdown untuk LLM', diff --git a/packages/gitbook/src/intl/translations/it.ts b/packages/gitbook/src/intl/translations/it.ts index 618c4d35fc..72e5367d95 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -153,6 +153,7 @@ export const it: TranslationLanguage = { ai_chat_ask_about: 'Chiedi a ${1} riguardo a ${2}', this_page: 'questa pagina', this_text: 'questo testo', + ai_chat_paragraph_draft: 'Dimmi di più a riguardo', copy_for_llms: 'Copia per LLM', copy_page_markdown: 'Copia la pagina come Markdown per LLM', copy_page: 'Copia pagina', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index 3dff782724..fa887273cd 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -150,6 +150,7 @@ export const ja: TranslationLanguage = { ai_chat_ask_about: '${1}に${2}について質問する', this_page: 'このページ', this_text: 'このテキスト', + ai_chat_paragraph_draft: 'これについてもっと教えて', copy_for_llms: 'LLM 用にコピー', copy_page_markdown: 'ページを Markdown として LLM 用にコピー', copy_page: 'ページをコピー', diff --git a/packages/gitbook/src/intl/translations/ko.ts b/packages/gitbook/src/intl/translations/ko.ts index 7214a6e10b..7e62e1b0ab 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -149,6 +149,7 @@ export const ko: TranslationLanguage = { ai_chat_ask_about: '${1}에게 ${2}에 대해 질문', this_page: '이 페이지', this_text: '이 텍스트', + ai_chat_paragraph_draft: '이것에 대해 더 알려줘', copy_for_llms: 'LLM용 복사', copy_page_markdown: 'LLM용으로 페이지를 Markdown으로 복사', copy_page: '페이지 복사', diff --git a/packages/gitbook/src/intl/translations/lt.ts b/packages/gitbook/src/intl/translations/lt.ts index 036f4051f9..d40aa7dfbb 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -150,6 +150,7 @@ export const lt: TranslationLanguage = { ai_chat_ask_about: 'Klausti ${1} apie ${2}', this_page: 'šį puslapį', this_text: 'šį tekstą', + ai_chat_paragraph_draft: 'Papasakok apie tai daugiau', ai_chat_ask_query: 'Klausti ${1} "${2}"', copy_for_llms: 'Kopijuoti LLM', copy_page_markdown: 'Kopijuoti puslapį kaip Markdown LLM', diff --git a/packages/gitbook/src/intl/translations/lv.ts b/packages/gitbook/src/intl/translations/lv.ts index 1c41cc5eb6..a9463dc0db 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -148,6 +148,7 @@ export const lv: TranslationLanguage = { ai_chat_ask_about: 'Jautāt ${1} par ${2}', this_page: 'šo lapu', this_text: 'šo tekstu', + ai_chat_paragraph_draft: 'Pastāsti man par to vairāk', ai_chat_ask_query: 'Jautāt ${1} "${2}"', copy_for_llms: 'Kopēt LLM vajadzībām', copy_page_markdown: 'Kopēt lapu kā Markdown LLM vajadzībām', diff --git a/packages/gitbook/src/intl/translations/ms.ts b/packages/gitbook/src/intl/translations/ms.ts index 59d376802b..31e848d336 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -149,6 +149,7 @@ export const ms: TranslationLanguage = { ai_chat_ask_about: 'Tanya ${1} tentang ${2}', this_page: 'halaman ini', this_text: 'teks ini', + ai_chat_paragraph_draft: 'Beritahu saya lebih lanjut tentang ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', copy_page_markdown: 'Salin halaman sebagai Markdown untuk LLM', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index 55af0347a1..e000f2c17e 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -152,6 +152,7 @@ export const nl: TranslationLanguage = { ai_chat_ask_about: 'Stel ${1} een vraag over ${2}', this_page: 'deze pagina', this_text: 'deze tekst', + ai_chat_paragraph_draft: 'Vertel me hier meer over', copy_for_llms: 'Kopiëren voor LLMs', copy_page_markdown: 'Pagina kopiëren als Markdown voor LLMs', copy_page: 'Pagina kopiëren', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index 012cb5b982..fa5cdc4e86 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -151,6 +151,7 @@ export const no: TranslationLanguage = { ai_chat_ask_about: 'Spør ${1} om ${2}', this_page: 'denne siden', this_text: 'denne teksten', + ai_chat_paragraph_draft: 'Fortell meg mer om dette', copy_for_llms: 'Kopier for LLMs', copy_page_markdown: 'Kopier siden som Markdown for LLMs', copy_page: 'Kopier side', diff --git a/packages/gitbook/src/intl/translations/pl.ts b/packages/gitbook/src/intl/translations/pl.ts index d557aa366d..501db0f69c 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -150,6 +150,7 @@ export const pl: TranslationLanguage = { ai_chat_ask_about: 'Zapytaj ${1} o ${2}', this_page: 'tę stronę', this_text: 'ten tekst', + ai_chat_paragraph_draft: 'Powiedz mi o tym więcej', ai_chat_ask_query: 'Zapytaj ${1} "${2}"', copy_for_llms: 'Kopiuj dla LLM', copy_page_markdown: 'Kopiuj stronę jako Markdown dla LLM', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index 98d55b5744..5b020f74eb 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -154,6 +154,7 @@ export const pt_br: TranslationLanguage = { ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', this_page: 'esta página', this_text: 'este texto', + ai_chat_paragraph_draft: 'Conte-me mais sobre isso', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', copy_page: 'Copiar página', diff --git a/packages/gitbook/src/intl/translations/pt.ts b/packages/gitbook/src/intl/translations/pt.ts index 138aa8b086..c8a52c6919 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -151,6 +151,7 @@ export const pt: TranslationLanguage = { ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', this_page: 'esta página', this_text: 'este texto', + ai_chat_paragraph_draft: 'Conta-me mais sobre isto', ai_chat_ask_query: 'Perguntar a ${1} "${2}"', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', diff --git a/packages/gitbook/src/intl/translations/ro.ts b/packages/gitbook/src/intl/translations/ro.ts index 78aec567c0..94bc91a3b0 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -153,6 +153,7 @@ export const ro: TranslationLanguage = { ai_chat_ask_about: 'Întreabă ${1} despre ${2}', this_page: 'această pagină', this_text: 'acest text', + ai_chat_paragraph_draft: 'Spune-mi mai multe despre asta', ai_chat_ask_query: 'Întreabă ${1} "${2}"', copy_for_llms: 'Copiază pentru LLM-uri', copy_page_markdown: 'Copiază pagina ca Markdown pentru LLM-uri', diff --git a/packages/gitbook/src/intl/translations/ru.ts b/packages/gitbook/src/intl/translations/ru.ts index 7d98a72614..e51b236498 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -153,6 +153,7 @@ export const ru: TranslationLanguage = { ai_chat_ask_about: 'Спросить у ${1} о ${2}', this_page: 'этой странице', this_text: 'этом тексте', + ai_chat_paragraph_draft: 'Расскажи мне об этом подробнее', copy_for_llms: 'Скопировать для LLM', copy_page_markdown: 'Скопировать страницу как Markdown для LLM', copy_page: 'Скопировать страницу', diff --git a/packages/gitbook/src/intl/translations/sk.ts b/packages/gitbook/src/intl/translations/sk.ts index 0a83dc0dfe..8584933c0b 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -152,6 +152,7 @@ export const sk: TranslationLanguage = { ai_chat_ask_about: 'Opýtať sa ${1} na ${2}', this_page: 'túto stránku', this_text: 'tento text', + ai_chat_paragraph_draft: 'Povedz mi o tom viac', ai_chat_ask_query: 'Opýtať sa ${1} "${2}"', copy_for_llms: 'Kopírovať pre LLM', copy_page_markdown: 'Kopírovať stránku ako Markdown pre LLM', diff --git a/packages/gitbook/src/intl/translations/sl.ts b/packages/gitbook/src/intl/translations/sl.ts index f869bc52a2..2a2d35934e 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -150,6 +150,7 @@ export const sl: TranslationLanguage = { ai_chat_ask_about: 'Vprašaj ${1} o ${2}', this_page: 'to stran', this_text: 'to besedilo', + ai_chat_paragraph_draft: 'Povej mi več o tem', ai_chat_ask_query: 'Vprašaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM', copy_page_markdown: 'Kopiraj stran kot Markdown za LLM', diff --git a/packages/gitbook/src/intl/translations/sv.ts b/packages/gitbook/src/intl/translations/sv.ts index 5c4deb1e4a..9b9f0e8af9 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -150,6 +150,7 @@ export const sv: TranslationLanguage = { ai_chat_ask_about: 'Fråga ${1} om ${2}', this_page: 'den här sidan', this_text: 'den här texten', + ai_chat_paragraph_draft: 'Berätta mer om det här', ai_chat_ask_query: 'Fråga ${1} "${2}"', copy_for_llms: 'Kopiera för LLM:er', copy_page_markdown: 'Kopiera sidan som Markdown för LLM:er', diff --git a/packages/gitbook/src/intl/translations/th.ts b/packages/gitbook/src/intl/translations/th.ts index 8e9c9a6480..e31c61592e 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -146,6 +146,7 @@ export const th: TranslationLanguage = { ai_chat_ask_about: 'ถาม ${1} เกี่ยวกับ ${2}', this_page: 'หน้านี้', this_text: 'ข้อความนี้', + ai_chat_paragraph_draft: 'บอกฉันเพิ่มเติมเกี่ยวกับเรื่องนี้', ai_chat_ask_query: 'ถาม ${1} "${2}"', copy_for_llms: 'คัดลอกสำหรับ LLM', copy_page_markdown: 'คัดลอกหน้าเป็น Markdown สำหรับ LLM', diff --git a/packages/gitbook/src/intl/translations/tr.ts b/packages/gitbook/src/intl/translations/tr.ts index d8cf228766..9e21e57d50 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -148,6 +148,7 @@ export const tr: TranslationLanguage = { ai_chat_ask_about: '${1} için ${2} hakkında sor', this_page: 'bu sayfa', this_text: 'bu metin', + ai_chat_paragraph_draft: 'Bana bundan daha fazla bahset', ai_chat_ask_query: '${1} için "${2}" sor', copy_for_llms: 'LLM için kopyala', copy_page_markdown: 'Sayfayı LLM için Markdown olarak kopyala', diff --git a/packages/gitbook/src/intl/translations/uk.ts b/packages/gitbook/src/intl/translations/uk.ts index 91ed8991ca..f72cd39cb3 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -148,6 +148,7 @@ export const uk: TranslationLanguage = { ai_chat_ask_about: 'Запитати ${1} про ${2}', this_page: 'цю сторінку', this_text: 'цей текст', + ai_chat_paragraph_draft: 'Розкажи мені про це більше', ai_chat_ask_query: 'Запитати ${1} "${2}"', copy_for_llms: 'Копіювати для LLM', copy_page_markdown: 'Копіювати сторінку як Markdown для LLM', diff --git a/packages/gitbook/src/intl/translations/vi.ts b/packages/gitbook/src/intl/translations/vi.ts index d023f9a6ac..3fefcb5cef 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -148,6 +148,7 @@ export const vi: TranslationLanguage = { ai_chat_ask_about: 'Hỏi ${1} về ${2}', this_page: 'trang này', this_text: 'văn bản này', + ai_chat_paragraph_draft: 'Cho tôi biết thêm về điều này', ai_chat_ask_query: 'Hỏi ${1} "${2}"', copy_for_llms: 'Sao chép cho LLM', copy_page_markdown: 'Sao chép trang dưới dạng Markdown cho LLM', diff --git a/packages/gitbook/src/intl/translations/yue.ts b/packages/gitbook/src/intl/translations/yue.ts index 399e0c808b..1e1991019d 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -145,6 +145,7 @@ export const yue: TranslationLanguage = { ai_chat_ask_about: '問 ${1} 關於${2}', this_page: '此頁面', this_text: '此文字', + ai_chat_paragraph_draft: '同我講多啲呢方面嘅嘢', ai_chat_ask_query: '問 ${1}「${2}」', copy_for_llms: '複製俾 LLM 用', copy_page_markdown: '以 Markdown 複製頁面俾 LLM 用', diff --git a/packages/gitbook/src/intl/translations/zh-tw.ts b/packages/gitbook/src/intl/translations/zh-tw.ts index 02c2561654..619a72aa36 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -145,6 +145,7 @@ export const zh_tw: TranslationLanguage = { ai_chat_ask_about: '詢問 ${1} 關於${2}', this_page: '此頁面', this_text: '此文字', + ai_chat_paragraph_draft: '告訴我更多相關資訊', ai_chat_ask_query: '詢問 ${1}「${2}」', copy_for_llms: '複製給 LLM 使用', copy_page_markdown: '將頁面以 Markdown 複製給 LLM 使用', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 0b82fffcd9..394a295896 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -146,6 +146,7 @@ export const zh: TranslationLanguage = { ai_chat_ask_about: '向 ${1} 询问${2}', this_page: '此页面', this_text: '此文本', + ai_chat_paragraph_draft: '告诉我更多相关信息', copy_for_llms: '复制供 LLMs 使用', copy_page_markdown: '将页面以 Markdown 格式复制供 LLMs 使用', copy_page: '复制页面', From 8d6612b924c9d5cecf35565d5b06e3e3584205c8 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Wed, 1 Jul 2026 15:10:22 +0200 Subject: [PATCH 6/6] =?UTF-8?q?Use=20a=20neutral=20"Ask=20=E2=80=A6=20abou?= =?UTF-8?q?t=20this"=20label=20for=20the=20paragraph=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the awkward "Ask ${1} about this text" with a dedicated whole-phrase key (ai_chat_ask_about_this) so each locale reads naturally — e.g. German "${1} dazu befragen" rather than a stitched "über dies" fragment — while still using the (variable) assistant name. Drops the now-unused this_text key. Co-Authored-By: Claude Opus 4.8 --- .../AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx | 5 ++--- packages/gitbook/src/intl/translations/ar.ts | 2 +- packages/gitbook/src/intl/translations/bg.ts | 2 +- packages/gitbook/src/intl/translations/cs.ts | 2 +- packages/gitbook/src/intl/translations/da.ts | 2 +- packages/gitbook/src/intl/translations/de.ts | 2 +- packages/gitbook/src/intl/translations/el.ts | 2 +- packages/gitbook/src/intl/translations/en.ts | 2 +- packages/gitbook/src/intl/translations/es.ts | 2 +- packages/gitbook/src/intl/translations/et.ts | 2 +- packages/gitbook/src/intl/translations/fi.ts | 2 +- packages/gitbook/src/intl/translations/fr.ts | 2 +- packages/gitbook/src/intl/translations/he.ts | 2 +- packages/gitbook/src/intl/translations/hi.ts | 2 +- packages/gitbook/src/intl/translations/hr.ts | 2 +- packages/gitbook/src/intl/translations/hu.ts | 2 +- packages/gitbook/src/intl/translations/id.ts | 2 +- packages/gitbook/src/intl/translations/it.ts | 2 +- packages/gitbook/src/intl/translations/ja.ts | 2 +- packages/gitbook/src/intl/translations/ko.ts | 2 +- packages/gitbook/src/intl/translations/lt.ts | 2 +- packages/gitbook/src/intl/translations/lv.ts | 2 +- packages/gitbook/src/intl/translations/ms.ts | 2 +- packages/gitbook/src/intl/translations/nl.ts | 2 +- packages/gitbook/src/intl/translations/no.ts | 2 +- packages/gitbook/src/intl/translations/pl.ts | 2 +- packages/gitbook/src/intl/translations/pt-br.ts | 2 +- packages/gitbook/src/intl/translations/pt.ts | 2 +- packages/gitbook/src/intl/translations/ro.ts | 2 +- packages/gitbook/src/intl/translations/ru.ts | 2 +- packages/gitbook/src/intl/translations/sk.ts | 2 +- packages/gitbook/src/intl/translations/sl.ts | 2 +- packages/gitbook/src/intl/translations/sv.ts | 2 +- packages/gitbook/src/intl/translations/th.ts | 2 +- packages/gitbook/src/intl/translations/tr.ts | 2 +- packages/gitbook/src/intl/translations/uk.ts | 2 +- packages/gitbook/src/intl/translations/vi.ts | 2 +- packages/gitbook/src/intl/translations/yue.ts | 2 +- packages/gitbook/src/intl/translations/zh-tw.ts | 2 +- packages/gitbook/src/intl/translations/zh.ts | 2 +- 40 files changed, 41 insertions(+), 42 deletions(-) diff --git a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx index bd47ddb060..2f2b269a1d 100644 --- a/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx +++ b/packages/gitbook/src/components/AIChat/AskAIParagraphButton/AskAIParagraphButton.tsx @@ -65,9 +65,8 @@ export function AskAIParagraphButton(props: { content: string; className?: Class icon={} label={t( language, - 'ai_chat_ask_about', - config.assistantName ?? getAIChatName(language, config.trademark), - tString(language, 'this_text') + 'ai_chat_ask_about_this', + config.assistantName ?? getAIChatName(language, config.trademark) )} onClick={onClick} // Don't steal focus (and shift the scroll position) when clicked with the mouse. diff --git a/packages/gitbook/src/intl/translations/ar.ts b/packages/gitbook/src/intl/translations/ar.ts index 7a034c8c0d..769ce44ca6 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -146,8 +146,8 @@ export const ar: TranslationLanguage = { ai_chat_tools_mcp_tool: 'تم استدعاء ${1}', ai_chat_ask: 'اسأل ${1}', ai_chat_ask_about: 'اسأل ${1} عن ${2}', + ai_chat_ask_about_this: 'اسأل ${1} عن هذا', this_page: 'هذه الصفحة', - this_text: 'هذا النص', ai_chat_paragraph_draft: 'أخبرني المزيد عن هذا', ai_chat_ask_query: 'اسأل ${1} "${2}"', copy_for_llms: 'نسخ للنماذج اللغوية الكبيرة', diff --git a/packages/gitbook/src/intl/translations/bg.ts b/packages/gitbook/src/intl/translations/bg.ts index 301e304e90..8bb82d0df0 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -150,8 +150,8 @@ export const bg: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Извика ${1}', ai_chat_ask: 'Попитайте ${1}', ai_chat_ask_about: 'Попитайте ${1} за ${2}', + ai_chat_ask_about_this: 'Попитайте ${1} за това', this_page: 'тази страница', - this_text: 'този текст', ai_chat_paragraph_draft: 'Кажи ми повече за това', ai_chat_ask_query: 'Попитайте ${1} "${2}"', copy_for_llms: 'Копиране за LLM', diff --git a/packages/gitbook/src/intl/translations/cs.ts b/packages/gitbook/src/intl/translations/cs.ts index 989edca4ba..e4fc09a431 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -148,8 +148,8 @@ export const cs: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Zavolal ${1}', ai_chat_ask: 'Zeptat se ${1}', ai_chat_ask_about: 'Zeptat se ${1} na ${2}', + ai_chat_ask_about_this: 'Zeptat se ${1} na to', this_page: 'tuto stránku', - this_text: 'tento text', ai_chat_paragraph_draft: 'Řekni mi o tom více', ai_chat_ask_query: 'Zeptat se ${1} "${2}"', copy_for_llms: 'Kopírovat pro LLM', diff --git a/packages/gitbook/src/intl/translations/da.ts b/packages/gitbook/src/intl/translations/da.ts index 61fec5c3d8..b3130fd83a 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -147,8 +147,8 @@ export const da: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Kaldte ${1}', ai_chat_ask: 'Spørg ${1}', ai_chat_ask_about: 'Spørg ${1} om ${2}', + ai_chat_ask_about_this: 'Spørg ${1} om dette', this_page: 'denne side', - this_text: 'denne tekst', ai_chat_paragraph_draft: 'Fortæl mig mere om dette', ai_chat_ask_query: 'Spørg ${1} "${2}"', copy_for_llms: 'Kopiér til LLMer', diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index fdda97aca1..fdfb1b07e2 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -154,8 +154,8 @@ export const de: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} aufgerufen', ai_chat_ask: '${1} fragen', ai_chat_ask_about: '${1} zu ${2} befragen', + ai_chat_ask_about_this: '${1} dazu befragen', this_page: 'dieser Seite', - this_text: 'diesem Text', ai_chat_paragraph_draft: 'Erzähl mir mehr darüber', copy_for_llms: 'Für LLMs kopieren', copy_page_markdown: 'Seite als Markdown für LLMs kopieren', diff --git a/packages/gitbook/src/intl/translations/el.ts b/packages/gitbook/src/intl/translations/el.ts index e7874d6f28..32296d8db2 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -152,8 +152,8 @@ export const el: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Κλήθηκε ${1}', ai_chat_ask: 'Ρωτήστε ${1}', ai_chat_ask_about: 'Ρωτήστε ${1} για ${2}', + ai_chat_ask_about_this: 'Ρωτήστε ${1} για αυτό', this_page: 'αυτή τη σελίδα', - this_text: 'αυτό το κείμενο', ai_chat_paragraph_draft: 'Πες μου περισσότερα για αυτό', ai_chat_ask_query: 'Ρωτήστε ${1} "${2}"', copy_for_llms: 'Αντιγραφή για LLM', diff --git a/packages/gitbook/src/intl/translations/en.ts b/packages/gitbook/src/intl/translations/en.ts index d125bcf813..e26f184583 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -145,9 +145,9 @@ export const en = { ai_chat_tools_mcp_tool: 'Called ${1}', ai_chat_ask: 'Ask ${1}', ai_chat_ask_about: 'Ask ${1} about ${2}', + ai_chat_ask_about_this: 'Ask ${1} about this', ai_chat_ask_query: 'Ask ${1} "${2}"', this_page: 'this page', - this_text: 'this text', ai_chat_paragraph_draft: 'Tell me more about this', copy_for_llms: 'Copy for LLMs', copy_page_markdown: 'Copy page as Markdown for LLMs', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index 19bcaf53fe..4557282ef7 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -152,8 +152,8 @@ export const es: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Llamó a ${1}', ai_chat_ask: 'Preguntar a ${1}', ai_chat_ask_about: 'Preguntar a ${1} sobre ${2}', + ai_chat_ask_about_this: 'Preguntar a ${1} sobre esto', this_page: 'esta página', - this_text: 'este texto', ai_chat_paragraph_draft: 'Cuéntame más sobre esto', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', diff --git a/packages/gitbook/src/intl/translations/et.ts b/packages/gitbook/src/intl/translations/et.ts index 11c665c1ca..49e53b0258 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -147,8 +147,8 @@ export const et: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Kutsus ${1}', ai_chat_ask: 'Küsi ${1}', ai_chat_ask_about: 'Küsi ${1}: ${2}', + ai_chat_ask_about_this: 'Küsi ${1} käest selle kohta', this_page: 'seda lehte', - this_text: 'seda teksti', ai_chat_paragraph_draft: 'Räägi mulle sellest lähemalt', ai_chat_ask_query: 'Küsi ${1} "${2}"', copy_for_llms: 'Kopeeri LLM-idele', diff --git a/packages/gitbook/src/intl/translations/fi.ts b/packages/gitbook/src/intl/translations/fi.ts index 057f1c3db6..6f573bec34 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -149,8 +149,8 @@ export const fi: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Kutsuttiin ${1}', ai_chat_ask: 'Kysy ${1}', ai_chat_ask_about: 'Kysy ${1}: ${2}', + ai_chat_ask_about_this: 'Kysy ${1}:lta tästä', this_page: 'tätä sivua', - this_text: 'tätä tekstiä', ai_chat_paragraph_draft: 'Kerro minulle tästä lisää', ai_chat_ask_query: 'Kysy ${1}: "${2}"', copy_for_llms: 'Kopioi LLM:ille', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 3c4440e530..301e8270e5 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -148,8 +148,8 @@ export const fr: TranslationLanguage = { ai_chat_tools_mcp_tool: 'A appelé ${1}', ai_chat_ask: 'Demander à ${1}', ai_chat_ask_about: 'Demander à ${1} à propos de ${2}', + ai_chat_ask_about_this: 'Interroger ${1} à ce sujet', this_page: 'cette page', - this_text: 'ce texte', ai_chat_paragraph_draft: 'En savoir plus à ce sujet', copy_for_llms: 'Copier pour un LLM', copy_page_markdown: 'Copier la page en Markdown pour un LLM', diff --git a/packages/gitbook/src/intl/translations/he.ts b/packages/gitbook/src/intl/translations/he.ts index 2ac20d45fc..bafe59cb80 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -145,8 +145,8 @@ export const he: TranslationLanguage = { ai_chat_tools_mcp_tool: 'קרא ל-${1}', ai_chat_ask: 'שאל את ${1}', ai_chat_ask_about: 'שאל את ${1} על ${2}', + ai_chat_ask_about_this: 'שאל את ${1} על זה', this_page: 'הדף הזה', - this_text: 'הטקסט הזה', ai_chat_paragraph_draft: 'ספר לי עוד על זה', ai_chat_ask_query: 'שאל את ${1} "${2}"', copy_for_llms: 'העתקה עבור LLMs', diff --git a/packages/gitbook/src/intl/translations/hi.ts b/packages/gitbook/src/intl/translations/hi.ts index 42dc791619..fa21019cdc 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -146,8 +146,8 @@ export const hi: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} को कॉल किया', ai_chat_ask: '${1} से पूछें', ai_chat_ask_about: '${1} से ${2} के बारे में पूछें', + ai_chat_ask_about_this: '${1} से इसके बारे में पूछें', this_page: 'इस पृष्ठ', - this_text: 'इस पाठ', ai_chat_paragraph_draft: 'इसके बारे में और बताएं', ai_chat_ask_query: '${1} से "${2}" पूछें', copy_for_llms: 'LLM के लिए कॉपी करें', diff --git a/packages/gitbook/src/intl/translations/hr.ts b/packages/gitbook/src/intl/translations/hr.ts index f0240e7373..05c417d840 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -148,8 +148,8 @@ export const hr: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Pozvao ${1}', ai_chat_ask: 'Pitaj ${1}', ai_chat_ask_about: 'Pitaj ${1} o ${2}', + ai_chat_ask_about_this: 'Pitaj ${1} o ovome', this_page: 'ova stranica', - this_text: 'ovaj tekst', ai_chat_paragraph_draft: 'Reci mi više o ovome', ai_chat_ask_query: 'Pitaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM-ove', diff --git a/packages/gitbook/src/intl/translations/hu.ts b/packages/gitbook/src/intl/translations/hu.ts index 7ea92cd5d5..9c3d4586d0 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -149,8 +149,8 @@ export const hu: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} meghívva', ai_chat_ask: '${1} kérdezése', ai_chat_ask_about: '${1} megkérdezése ${2} témában', + ai_chat_ask_about_this: '${1} megkérdezése erről', this_page: 'ez az oldal', - this_text: 'ez a szöveg', ai_chat_paragraph_draft: 'Mesélj erről többet', ai_chat_ask_query: '${1} kérdezése: "${2}"', copy_for_llms: 'Másolás LLM-ekhez', diff --git a/packages/gitbook/src/intl/translations/id.ts b/packages/gitbook/src/intl/translations/id.ts index 83292a714b..d87cf516e4 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -147,8 +147,8 @@ export const id: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Memanggil ${1}', ai_chat_ask: 'Tanya ${1}', ai_chat_ask_about: 'Tanya ${1} tentang ${2}', + ai_chat_ask_about_this: 'Tanya ${1} tentang ini', this_page: 'halaman ini', - this_text: 'teks ini', ai_chat_paragraph_draft: 'Ceritakan lebih banyak tentang ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', diff --git a/packages/gitbook/src/intl/translations/it.ts b/packages/gitbook/src/intl/translations/it.ts index 72e5367d95..30cecfe794 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -151,8 +151,8 @@ export const it: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Ha chiamato ${1}', ai_chat_ask: 'Chiedi a ${1}', ai_chat_ask_about: 'Chiedi a ${1} riguardo a ${2}', + ai_chat_ask_about_this: 'Chiedi a ${1} riguardo a questo', this_page: 'questa pagina', - this_text: 'questo testo', ai_chat_paragraph_draft: 'Dimmi di più a riguardo', copy_for_llms: 'Copia per LLM', copy_page_markdown: 'Copia la pagina come Markdown per LLM', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index fa887273cd..a908bf42bb 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -148,8 +148,8 @@ export const ja: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} を呼び出しました', ai_chat_ask: '${1} に質問する', ai_chat_ask_about: '${1}に${2}について質問する', + ai_chat_ask_about_this: '${1}にこれについて質問する', this_page: 'このページ', - this_text: 'このテキスト', ai_chat_paragraph_draft: 'これについてもっと教えて', copy_for_llms: 'LLM 用にコピー', copy_page_markdown: 'ページを Markdown として LLM 用にコピー', diff --git a/packages/gitbook/src/intl/translations/ko.ts b/packages/gitbook/src/intl/translations/ko.ts index 7e62e1b0ab..f5ed3d8e1c 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -147,8 +147,8 @@ export const ko: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} 호출함', ai_chat_ask: '${1}에게 질문', ai_chat_ask_about: '${1}에게 ${2}에 대해 질문', + ai_chat_ask_about_this: '${1}에게 이에 대해 질문', this_page: '이 페이지', - this_text: '이 텍스트', ai_chat_paragraph_draft: '이것에 대해 더 알려줘', copy_for_llms: 'LLM용 복사', copy_page_markdown: 'LLM용으로 페이지를 Markdown으로 복사', diff --git a/packages/gitbook/src/intl/translations/lt.ts b/packages/gitbook/src/intl/translations/lt.ts index d40aa7dfbb..9dcf78ccde 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -148,8 +148,8 @@ export const lt: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Iškviesta ${1}', ai_chat_ask: 'Klausti ${1}', ai_chat_ask_about: 'Klausti ${1} apie ${2}', + ai_chat_ask_about_this: 'Klausti ${1} apie tai', this_page: 'šį puslapį', - this_text: 'šį tekstą', ai_chat_paragraph_draft: 'Papasakok apie tai daugiau', ai_chat_ask_query: 'Klausti ${1} "${2}"', copy_for_llms: 'Kopijuoti LLM', diff --git a/packages/gitbook/src/intl/translations/lv.ts b/packages/gitbook/src/intl/translations/lv.ts index a9463dc0db..324f4ad225 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -146,8 +146,8 @@ export const lv: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Izsauca ${1}', ai_chat_ask: 'Jautāt ${1}', ai_chat_ask_about: 'Jautāt ${1} par ${2}', + ai_chat_ask_about_this: 'Jautāt ${1} par to', this_page: 'šo lapu', - this_text: 'šo tekstu', ai_chat_paragraph_draft: 'Pastāsti man par to vairāk', ai_chat_ask_query: 'Jautāt ${1} "${2}"', copy_for_llms: 'Kopēt LLM vajadzībām', diff --git a/packages/gitbook/src/intl/translations/ms.ts b/packages/gitbook/src/intl/translations/ms.ts index 31e848d336..84651b9b7e 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -147,8 +147,8 @@ export const ms: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Memanggil ${1}', ai_chat_ask: 'Tanya ${1}', ai_chat_ask_about: 'Tanya ${1} tentang ${2}', + ai_chat_ask_about_this: 'Tanya ${1} tentang ini', this_page: 'halaman ini', - this_text: 'teks ini', ai_chat_paragraph_draft: 'Beritahu saya lebih lanjut tentang ini', ai_chat_ask_query: 'Tanya ${1} "${2}"', copy_for_llms: 'Salin untuk LLM', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index e000f2c17e..6fe56a31ee 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -150,8 +150,8 @@ export const nl: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} aangeroepen', ai_chat_ask: 'Vraag het aan ${1}', ai_chat_ask_about: 'Stel ${1} een vraag over ${2}', + ai_chat_ask_about_this: 'Stel ${1} een vraag hierover', this_page: 'deze pagina', - this_text: 'deze tekst', ai_chat_paragraph_draft: 'Vertel me hier meer over', copy_for_llms: 'Kopiëren voor LLMs', copy_page_markdown: 'Pagina kopiëren als Markdown voor LLMs', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index fa5cdc4e86..f9bc27f094 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -149,8 +149,8 @@ export const no: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Kalte ${1}', ai_chat_ask: 'Spør ${1}', ai_chat_ask_about: 'Spør ${1} om ${2}', + ai_chat_ask_about_this: 'Spør ${1} om dette', this_page: 'denne siden', - this_text: 'denne teksten', ai_chat_paragraph_draft: 'Fortell meg mer om dette', copy_for_llms: 'Kopier for LLMs', copy_page_markdown: 'Kopier siden som Markdown for LLMs', diff --git a/packages/gitbook/src/intl/translations/pl.ts b/packages/gitbook/src/intl/translations/pl.ts index 501db0f69c..a7a8fa41d1 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -148,8 +148,8 @@ export const pl: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Wywołano ${1}', ai_chat_ask: 'Zapytaj ${1}', ai_chat_ask_about: 'Zapytaj ${1} o ${2}', + ai_chat_ask_about_this: 'Zapytaj ${1} o to', this_page: 'tę stronę', - this_text: 'ten tekst', ai_chat_paragraph_draft: 'Powiedz mi o tym więcej', ai_chat_ask_query: 'Zapytaj ${1} "${2}"', copy_for_llms: 'Kopiuj dla LLM', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index 5b020f74eb..fe067c70ac 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -152,8 +152,8 @@ export const pt_br: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Chamou ${1}', ai_chat_ask: 'Perguntar a ${1}', ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', + ai_chat_ask_about_this: 'Perguntar a ${1} sobre isso', this_page: 'esta página', - this_text: 'este texto', ai_chat_paragraph_draft: 'Conte-me mais sobre isso', copy_for_llms: 'Copiar para LLMs', copy_page_markdown: 'Copiar página como Markdown para LLMs', diff --git a/packages/gitbook/src/intl/translations/pt.ts b/packages/gitbook/src/intl/translations/pt.ts index c8a52c6919..a9fe630eaf 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -149,8 +149,8 @@ export const pt: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Chamou ${1}', ai_chat_ask: 'Perguntar a ${1}', ai_chat_ask_about: 'Perguntar a ${1} sobre ${2}', + ai_chat_ask_about_this: 'Perguntar a ${1} sobre isto', this_page: 'esta página', - this_text: 'este texto', ai_chat_paragraph_draft: 'Conta-me mais sobre isto', ai_chat_ask_query: 'Perguntar a ${1} "${2}"', copy_for_llms: 'Copiar para LLMs', diff --git a/packages/gitbook/src/intl/translations/ro.ts b/packages/gitbook/src/intl/translations/ro.ts index 94bc91a3b0..379f2ff510 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -151,8 +151,8 @@ export const ro: TranslationLanguage = { ai_chat_tools_mcp_tool: 'A apelat ${1}', ai_chat_ask: 'Întreabă ${1}', ai_chat_ask_about: 'Întreabă ${1} despre ${2}', + ai_chat_ask_about_this: 'Întreabă ${1} despre asta', this_page: 'această pagină', - this_text: 'acest text', ai_chat_paragraph_draft: 'Spune-mi mai multe despre asta', ai_chat_ask_query: 'Întreabă ${1} "${2}"', copy_for_llms: 'Copiază pentru LLM-uri', diff --git a/packages/gitbook/src/intl/translations/ru.ts b/packages/gitbook/src/intl/translations/ru.ts index e51b236498..faf8f11115 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -151,8 +151,8 @@ export const ru: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Вызван ${1}', ai_chat_ask: 'Спросить у ${1}', ai_chat_ask_about: 'Спросить у ${1} о ${2}', + ai_chat_ask_about_this: 'Спросить у ${1} об этом', this_page: 'этой странице', - this_text: 'этом тексте', ai_chat_paragraph_draft: 'Расскажи мне об этом подробнее', copy_for_llms: 'Скопировать для LLM', copy_page_markdown: 'Скопировать страницу как Markdown для LLM', diff --git a/packages/gitbook/src/intl/translations/sk.ts b/packages/gitbook/src/intl/translations/sk.ts index 8584933c0b..da48a3be20 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -150,8 +150,8 @@ export const sk: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Zavolal ${1}', ai_chat_ask: 'Opýtať sa ${1}', ai_chat_ask_about: 'Opýtať sa ${1} na ${2}', + ai_chat_ask_about_this: 'Opýtať sa ${1} na to', this_page: 'túto stránku', - this_text: 'tento text', ai_chat_paragraph_draft: 'Povedz mi o tom viac', ai_chat_ask_query: 'Opýtať sa ${1} "${2}"', copy_for_llms: 'Kopírovať pre LLM', diff --git a/packages/gitbook/src/intl/translations/sl.ts b/packages/gitbook/src/intl/translations/sl.ts index 2a2d35934e..b3ae2b620b 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -148,8 +148,8 @@ export const sl: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Poklicano ${1}', ai_chat_ask: 'Vprašaj ${1}', ai_chat_ask_about: 'Vprašaj ${1} o ${2}', + ai_chat_ask_about_this: 'Vprašaj ${1} o tem', this_page: 'to stran', - this_text: 'to besedilo', ai_chat_paragraph_draft: 'Povej mi več o tem', ai_chat_ask_query: 'Vprašaj ${1} "${2}"', copy_for_llms: 'Kopiraj za LLM', diff --git a/packages/gitbook/src/intl/translations/sv.ts b/packages/gitbook/src/intl/translations/sv.ts index 9b9f0e8af9..0c375c5da3 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -148,8 +148,8 @@ export const sv: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Anropade ${1}', ai_chat_ask: 'Fråga ${1}', ai_chat_ask_about: 'Fråga ${1} om ${2}', + ai_chat_ask_about_this: 'Fråga ${1} om det här', this_page: 'den här sidan', - this_text: 'den här texten', ai_chat_paragraph_draft: 'Berätta mer om det här', ai_chat_ask_query: 'Fråga ${1} "${2}"', copy_for_llms: 'Kopiera för LLM:er', diff --git a/packages/gitbook/src/intl/translations/th.ts b/packages/gitbook/src/intl/translations/th.ts index e31c61592e..36cd3f058b 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -144,8 +144,8 @@ export const th: TranslationLanguage = { ai_chat_tools_mcp_tool: 'เรียกใช้ ${1}', ai_chat_ask: 'ถาม ${1}', ai_chat_ask_about: 'ถาม ${1} เกี่ยวกับ ${2}', + ai_chat_ask_about_this: 'ถาม ${1} เกี่ยวกับเรื่องนี้', this_page: 'หน้านี้', - this_text: 'ข้อความนี้', ai_chat_paragraph_draft: 'บอกฉันเพิ่มเติมเกี่ยวกับเรื่องนี้', ai_chat_ask_query: 'ถาม ${1} "${2}"', copy_for_llms: 'คัดลอกสำหรับ LLM', diff --git a/packages/gitbook/src/intl/translations/tr.ts b/packages/gitbook/src/intl/translations/tr.ts index 9e21e57d50..f819970ad6 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -146,8 +146,8 @@ export const tr: TranslationLanguage = { ai_chat_tools_mcp_tool: '${1} çağrıldı', ai_chat_ask: '${1} sor', ai_chat_ask_about: '${1} için ${2} hakkında sor', + ai_chat_ask_about_this: '${1} için bununla ilgili sor', this_page: 'bu sayfa', - this_text: 'bu metin', ai_chat_paragraph_draft: 'Bana bundan daha fazla bahset', ai_chat_ask_query: '${1} için "${2}" sor', copy_for_llms: 'LLM için kopyala', diff --git a/packages/gitbook/src/intl/translations/uk.ts b/packages/gitbook/src/intl/translations/uk.ts index f72cd39cb3..9bec9bad07 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -146,8 +146,8 @@ export const uk: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Викликано ${1}', ai_chat_ask: 'Запитати ${1}', ai_chat_ask_about: 'Запитати ${1} про ${2}', + ai_chat_ask_about_this: 'Запитати ${1} про це', this_page: 'цю сторінку', - this_text: 'цей текст', ai_chat_paragraph_draft: 'Розкажи мені про це більше', ai_chat_ask_query: 'Запитати ${1} "${2}"', copy_for_llms: 'Копіювати для LLM', diff --git a/packages/gitbook/src/intl/translations/vi.ts b/packages/gitbook/src/intl/translations/vi.ts index 3fefcb5cef..8d5f587efd 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -146,8 +146,8 @@ export const vi: TranslationLanguage = { ai_chat_tools_mcp_tool: 'Đã gọi ${1}', ai_chat_ask: 'Hỏi ${1}', ai_chat_ask_about: 'Hỏi ${1} về ${2}', + ai_chat_ask_about_this: 'Hỏi ${1} về điều này', this_page: 'trang này', - this_text: 'văn bản này', ai_chat_paragraph_draft: 'Cho tôi biết thêm về điều này', ai_chat_ask_query: 'Hỏi ${1} "${2}"', copy_for_llms: 'Sao chép cho LLM', diff --git a/packages/gitbook/src/intl/translations/yue.ts b/packages/gitbook/src/intl/translations/yue.ts index 1e1991019d..436b4f94f7 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -143,8 +143,8 @@ export const yue: TranslationLanguage = { ai_chat_tools_mcp_tool: '已呼叫 ${1}', ai_chat_ask: '問 ${1}', ai_chat_ask_about: '問 ${1} 關於${2}', + ai_chat_ask_about_this: '問 ${1} 關於呢樣嘢', this_page: '此頁面', - this_text: '此文字', ai_chat_paragraph_draft: '同我講多啲呢方面嘅嘢', ai_chat_ask_query: '問 ${1}「${2}」', copy_for_llms: '複製俾 LLM 用', diff --git a/packages/gitbook/src/intl/translations/zh-tw.ts b/packages/gitbook/src/intl/translations/zh-tw.ts index 619a72aa36..830e519f7c 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -143,8 +143,8 @@ export const zh_tw: TranslationLanguage = { ai_chat_tools_mcp_tool: '已呼叫 ${1}', ai_chat_ask: '詢問 ${1}', ai_chat_ask_about: '詢問 ${1} 關於${2}', + ai_chat_ask_about_this: '詢問 ${1} 關於這個', this_page: '此頁面', - this_text: '此文字', ai_chat_paragraph_draft: '告訴我更多相關資訊', ai_chat_ask_query: '詢問 ${1}「${2}」', copy_for_llms: '複製給 LLM 使用', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 394a295896..ff64c30711 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -144,8 +144,8 @@ export const zh: TranslationLanguage = { ai_chat_tools_mcp_tool: '调用了 ${1}', ai_chat_ask: '向 ${1} 提问', ai_chat_ask_about: '向 ${1} 询问${2}', + ai_chat_ask_about_this: '向 ${1} 询问这个', this_page: '此页面', - this_text: '此文本', ai_chat_paragraph_draft: '告诉我更多相关信息', copy_for_llms: '复制供 LLMs 使用', copy_page_markdown: '将页面以 Markdown 格式复制供 LLMs 使用',