diff --git a/packages/gitbook/src/components/Search/SearchAskAnswer.tsx b/packages/gitbook/src/components/Search/SearchAskAnswer.tsx index 7e8f83bd2..81380d2df 100644 --- a/packages/gitbook/src/components/Search/SearchAskAnswer.tsx +++ b/packages/gitbook/src/components/Search/SearchAskAnswer.tsx @@ -186,7 +186,6 @@ function AnswerFollowupQuestions(props: { followupQuestions: string[] }) { )} {...getSearchLinkProps({ query: question, - ask: true, })} > { setSearchState({ - ask: false, + mode: 'both', global: false, query: '', }); diff --git a/packages/gitbook/src/components/Search/SearchResults.tsx b/packages/gitbook/src/components/Search/SearchResults.tsx index 03baa3e2a..5a31ca262 100644 --- a/packages/gitbook/src/components/Search/SearchResults.tsx +++ b/packages/gitbook/src/components/Search/SearchResults.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { t, useLanguage } from '@/intl/client'; import { tcls } from '@/lib/tailwind'; -import { AnimatePresence } from 'framer-motion'; +import { AnimatePresence, motion } from 'framer-motion'; import { useTrackEvent } from '../Insights'; import { Loading } from '../primitives'; import { SearchPageResultItem } from './SearchPageResultItem'; @@ -252,7 +252,7 @@ export const SearchResults = React.forwardRef(function SearchResults( ) : query && results.length === 0 ? ( noResults ) : ( -
+ )} ); diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index b42da6c55..2d4653466 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -6,6 +6,7 @@ export const de = { switch_to_light_theme: 'Zum hellen Modus wechseln', switch_to_system_theme: 'Zum Systemmodus wechseln', search: 'Suche', + view: 'Anzeigen', search_or_ask: 'Fragen oder Suchen', search_input_placeholder: 'Inhalt durchsuchen', search_ask_input_placeholder: 'Inhalt durchsuchen oder eine Frage stellen', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index 2d0d46565..0358bc17b 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -8,6 +8,7 @@ export const es: TranslationLanguage = { switch_to_light_theme: 'Cambiar a tema claro', switch_to_system_theme: 'Cambiar a tema del sistema', search: 'Buscar', + view: 'Ver', search_or_ask: 'Preguntar o Buscar', search_input_placeholder: 'Buscar contenido', search_ask_input_placeholder: 'Buscar contenido o hacer una pregunta', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 71d340332..816388885 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -8,6 +8,7 @@ export const fr: TranslationLanguage = { switch_to_light_theme: 'Passer au thème clair', switch_to_system_theme: 'Passer au thème système', search: 'Rechercher', + view: 'Voir', search_or_ask: 'Demander ou rechercher', search_input_placeholder: 'Rechercher le contenu', search_ask_input_placeholder: 'Rechercher du contenu ou poser une question', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index f3f548068..030cccd16 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -8,6 +8,7 @@ export const ja: TranslationLanguage = { switch_to_light_theme: 'ライトテーマに切り替え', switch_to_system_theme: 'システムのテーマに切り替え', search: '検索', + view: '表示', search_or_ask: '質問または検索', search_input_placeholder: 'コンテンツを検索', search_ask_input_placeholder: 'コンテンツを検索するか質問をする', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index 6bfb45e9a..57cc22008 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -8,6 +8,7 @@ export const nl: TranslationLanguage = { switch_to_light_theme: 'Schakel over naar lichte modus', switch_to_system_theme: 'Schakel over naar systeemmodus', search: 'Zoeken', + view: 'Bekijken', search_or_ask: 'Zoek of vraag', search_input_placeholder: 'Zoek inhoud', search_ask_input_placeholder: 'Zoek inhoud of stel een vraag', @@ -17,7 +18,7 @@ export const nl: TranslationLanguage = { search_ask: 'Vraag "${1}"', search_ask_description: 'Vind het antwoord met AI', search_ask_sources: 'Bronnen', - search_ask_sources_no_answer: 'Gerelateerde pagina’s', + search_ask_sources_no_answer: "Gerelateerde pagina's", search_ask_no_answer: 'Er kon geen antwoord op je vraag worden gevonden. Probeer je vraag anders te formuleren of wees specifieker.', search_ask_error: 'Er is iets misgegaan. Probeer het later opnieuw.', @@ -54,9 +55,9 @@ export const nl: TranslationLanguage = { pdf_print: 'Print of opslaan als PDF', pdf_page_of: '${1} van ${2}', pdf_mode_only_page: 'Alleen deze pagina', - pdf_mode_all: 'Alle pagina’s', + pdf_mode_all: "Alle pagina's", pdf_limit_reached: "Kon de PDF niet genereren voor ${1} pagina's, generatie gestopt bij ${2}.", - pdf_limit_reached_continue: 'Verleng met ${1} extra pagina’s.', + pdf_limit_reached_continue: "Verleng met ${1} extra pagina's.", more: 'Meer', link_tooltip_external_link: 'Externe link naar', link_tooltip_page_anchor: 'Spring naar sectie', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index 6be6b413e..b9c4aaa47 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -8,6 +8,7 @@ export const no: TranslationLanguage = { switch_to_light_theme: 'Bytt til lyst tema', switch_to_system_theme: 'Bytt til systemtema', search: 'Søk', + view: 'Vis', search_or_ask: 'Spør eller søk', search_input_placeholder: 'Søk i innhold', search_ask_input_placeholder: 'Søk i innhold eller still et spørsmål', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index 35a40cd45..d33f0651d 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -6,6 +6,7 @@ export const pt_br = { switch_to_light_theme: 'Mudar para modo claro', switch_to_system_theme: 'Mudar para configuração do sistema', search: 'Busca', + view: 'Ver', search_or_ask: 'Perguntar ou buscar', search_input_placeholder: 'Buscar conteúdo', search_ask_input_placeholder: 'Buscar conteúdo ou fazer uma pergunta', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 08efdddde..31e283b3f 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -8,6 +8,7 @@ export const zh: TranslationLanguage = { switch_to_light_theme: '切换到浅色主题', switch_to_system_theme: '切换到系统主题', search: '搜索', + view: '查看', search_or_ask: '询问或搜索', search_input_placeholder: '搜索内容', search_ask_input_placeholder: '搜索内容或提问',