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. 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 new file mode 100644 index 0000000000..2f2b269a1d --- /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.setDraft(tString(language, 'ai_chat_paragraph_draft')); + 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..769ce44ca6 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -145,7 +145,10 @@ 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}', + ai_chat_ask_about_this: 'اسأل ${1} عن هذا', + this_page: 'هذه الصفحة', + 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 5394bd2b41..8bb82d0df0 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -149,7 +149,10 @@ 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}', + ai_chat_ask_about_this: 'Попитайте ${1} за това', + this_page: 'тази страница', + 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 228f95b084..e4fc09a431 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Zeptat se ${1} na to', + this_page: 'tuto stránku', + 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 f3d1f4ae84..b3130fd83a 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -146,7 +146,10 @@ 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}', + ai_chat_ask_about_this: 'Spørg ${1} om dette', + this_page: 'denne side', + 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 2338f71211..fdfb1b07e2 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -153,7 +153,10 @@ 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', + ai_chat_ask_about_this: '${1} dazu befragen', + this_page: 'dieser Seite', + 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 0659975b82..32296d8db2 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -151,7 +151,10 @@ 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}', + ai_chat_ask_about_this: 'Ρωτήστε ${1} για αυτό', + this_page: 'αυτή τη σελίδα', + 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 9bae2e462d..e26f184583 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -144,8 +144,11 @@ 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_about_this: 'Ask ${1} about this', ai_chat_ask_query: 'Ask ${1} "${2}"', + this_page: 'this page', + 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 a412615df4..4557282ef7 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -151,7 +151,10 @@ 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}', + ai_chat_ask_about_this: 'Preguntar a ${1} sobre esto', + this_page: 'esta página', + 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 363eac60f2..49e53b0258 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -146,7 +146,10 @@ 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}', + ai_chat_ask_about_this: 'Küsi ${1} käest selle kohta', + this_page: 'seda lehte', + 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 ae8741f3ca..6f573bec34 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -148,7 +148,10 @@ 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}', + ai_chat_ask_about_this: 'Kysy ${1}:lta tästä', + this_page: 'tätä sivua', + 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 85c69531f8..301e8270e5 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Interroger ${1} à ce sujet', + this_page: 'cette page', + 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 5403a7b989..bafe59cb80 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -144,7 +144,10 @@ 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}', + ai_chat_ask_about_this: 'שאל את ${1} על זה', + this_page: 'הדף הזה', + 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 fd0cf588bd..fa21019cdc 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -145,7 +145,10 @@ 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} के बारे में पूछें', + ai_chat_ask_about_this: '${1} से इसके बारे में पूछें', + this_page: 'इस पृष्ठ', + 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 26a9963297..05c417d840 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Pitaj ${1} o ovome', + this_page: 'ova stranica', + 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 4fbcf30173..9c3d4586d0 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -148,7 +148,10 @@ 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', + ai_chat_ask_about_this: '${1} megkérdezése erről', + this_page: 'ez az oldal', + 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 3c1df2a3a1..d87cf516e4 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -146,7 +146,10 @@ 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}', + ai_chat_ask_about_this: 'Tanya ${1} tentang ini', + this_page: 'halaman 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 b8f281bf76..30cecfe794 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -150,7 +150,10 @@ 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}', + ai_chat_ask_about_this: 'Chiedi a ${1} riguardo a questo', + this_page: 'questa pagina', + 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 319ea4f582..a908bf42bb 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -147,7 +147,10 @@ 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}について質問する', + ai_chat_ask_about_this: '${1}にこれについて質問する', + this_page: 'このページ', + 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 1048a30a2b..f5ed3d8e1c 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -146,7 +146,10 @@ 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}에 대해 질문', + ai_chat_ask_about_this: '${1}에게 이에 대해 질문', + this_page: '이 페이지', + 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 e6c1a7bc37..9dcf78ccde 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Klausti ${1} apie tai', + this_page: 'šį puslapį', + 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 634146f902..324f4ad225 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -145,7 +145,10 @@ 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}', + ai_chat_ask_about_this: 'Jautāt ${1} par to', + this_page: 'šo lapu', + 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 2d54ae41af..84651b9b7e 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -146,7 +146,10 @@ 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}', + ai_chat_ask_about_this: 'Tanya ${1} tentang ini', + this_page: 'halaman 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 9296b0d766..6fe56a31ee 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -149,7 +149,10 @@ 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}', + ai_chat_ask_about_this: 'Stel ${1} een vraag hierover', + this_page: 'deze pagina', + 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 f4e69fa59c..f9bc27f094 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -148,7 +148,10 @@ 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}', + ai_chat_ask_about_this: 'Spør ${1} om dette', + this_page: 'denne siden', + 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 6d00f63006..a7a8fa41d1 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Zapytaj ${1} o to', + this_page: 'tę stronę', + 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 a3a8d21e0c..fe067c70ac 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -151,7 +151,10 @@ 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}', + ai_chat_ask_about_this: 'Perguntar a ${1} sobre isso', + this_page: 'esta página', + 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 4364a608ea..a9fe630eaf 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -148,7 +148,10 @@ 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}', + ai_chat_ask_about_this: 'Perguntar a ${1} sobre isto', + this_page: 'esta página', + 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 4fbdb72b6a..379f2ff510 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -150,7 +150,10 @@ 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}', + ai_chat_ask_about_this: 'Întreabă ${1} despre asta', + this_page: 'această pagină', + 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 5464396f8c..faf8f11115 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -150,7 +150,10 @@ 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}', + ai_chat_ask_about_this: 'Спросить у ${1} об этом', + this_page: 'этой странице', + 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 7651895f99..da48a3be20 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -149,7 +149,10 @@ 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}', + ai_chat_ask_about_this: 'Opýtať sa ${1} na to', + this_page: 'túto stránku', + 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 8fe0d34ea8..b3ae2b620b 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Vprašaj ${1} o tem', + this_page: 'to stran', + 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 511b0cba78..0c375c5da3 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -147,7 +147,10 @@ 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}', + ai_chat_ask_about_this: 'Fråga ${1} om det här', + this_page: 'den här sidan', + 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 11102a0ce6..36cd3f058b 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -143,7 +143,10 @@ 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}', + ai_chat_ask_about_this: 'ถาม ${1} เกี่ยวกับเรื่องนี้', + this_page: 'หน้านี้', + 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 a52d82cbe9..f819970ad6 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -145,7 +145,10 @@ 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', + ai_chat_ask_about_this: '${1} için bununla ilgili sor', + this_page: 'bu sayfa', + 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 8bfd026a87..9bec9bad07 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -145,7 +145,10 @@ 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}', + ai_chat_ask_about_this: 'Запитати ${1} про це', + this_page: 'цю сторінку', + 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 f33f6c42e6..8d5f587efd 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -145,7 +145,10 @@ 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}', + ai_chat_ask_about_this: 'Hỏi ${1} về điều này', + this_page: 'trang 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 fbd172310e..436b4f94f7 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -142,7 +142,10 @@ 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}', + ai_chat_ask_about_this: '問 ${1} 關於呢樣嘢', + this_page: '此頁面', + 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 b9a2a7955d..830e519f7c 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -142,7 +142,10 @@ 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}', + ai_chat_ask_about_this: '詢問 ${1} 關於這個', + this_page: '此頁面', + 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 3749501c81..ff64c30711 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -143,7 +143,10 @@ 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}', + ai_chat_ask_about_this: '向 ${1} 询问这个', + this_page: '此页面', + ai_chat_paragraph_draft: '告诉我更多相关信息', copy_for_llms: '复制供 LLMs 使用', copy_page_markdown: '将页面以 Markdown 格式复制供 LLMs 使用', copy_page: '复制页面',