{links.map(([ref, showReferenceContent]) => {
return (
diff --git a/tldraw/apps/tldraw-logseq/src/components/QuickSearch/QuickSearch.tsx b/tldraw/apps/tldraw-logseq/src/components/QuickSearch/QuickSearch.tsx
index 3dc1d368af..d005044631 100644
--- a/tldraw/apps/tldraw-logseq/src/components/QuickSearch/QuickSearch.tsx
+++ b/tldraw/apps/tldraw-logseq/src/components/QuickSearch/QuickSearch.tsx
@@ -101,6 +101,7 @@ export const LogseqQuickSearch = observer(
)
const rInput = React.useRef(null)
const { handlers, renderers } = React.useContext(LogseqContext)
+ const t = handlers.t
const finishSearching = React.useCallback((id: string) => {
onChange(id)
@@ -172,11 +173,11 @@ export const LogseqQuickSearch = observer(
{q.length > 0 ? (
<>
- New block:
+ {t('whiteboard/new-block')}
{q}
>
) : (
- New block
+ {t('whiteboard/new-block-no-colon')}
)}
),
@@ -195,7 +196,7 @@ export const LogseqQuickSearch = observer(
element: (
- New page:
+ {t('whiteboard/new-page')}
{q}
),
@@ -210,7 +211,7 @@ export const LogseqQuickSearch = observer(
element: (
- New whiteboard:
+ {t('whiteboard/new-whiteboard')}
{q}
),
@@ -230,7 +231,7 @@ export const LogseqQuickSearch = observer(
element: (
- Search only blocks
+ {t('whiteboard/search-only-blocks')}
),
},
@@ -243,7 +244,7 @@ export const LogseqQuickSearch = observer(
element: (
- Search only pages
+ {t('whiteboard/search-only-pages')}
),
}
@@ -302,10 +303,7 @@ export const LogseqQuickSearch = observer(
- Cache is outdated. Please click the 'Re-index' button in the graph's dropdown
- menu.
-
),
}
})
diff --git a/tldraw/apps/tldraw-logseq/src/components/inputs/ColorInput.tsx b/tldraw/apps/tldraw-logseq/src/components/inputs/ColorInput.tsx
index e575ea169d..f68cfb48c2 100644
--- a/tldraw/apps/tldraw-logseq/src/components/inputs/ColorInput.tsx
+++ b/tldraw/apps/tldraw-logseq/src/components/inputs/ColorInput.tsx
@@ -5,6 +5,7 @@ import { TablerIcon } from '../icons'
import { PopoverButton } from '../PopoverButton'
import { Tooltip } from '../Tooltip'
import React from 'react'
+import { LogseqContext } from '../../lib/logseq-context'
interface ColorInputProps extends React.HTMLAttributes