From 998198cffb9bbcc8a75cd07310c06fabff6750bd Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Sun, 11 Feb 2024 19:27:16 +0000
Subject: [PATCH] chore(deps): bump esbuild-sass-plugin from 2.16.0 to 2.16.1 (#778)
---
quartz/components/Search.tsx | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/quartz/components/Search.tsx b/quartz/components/Search.tsx
index 239bc03..a07dbc4 100644
--- a/quartz/components/Search.tsx
+++ b/quartz/components/Search.tsx
@@ -3,6 +3,7 @@
// @ts-ignore
import script from "./scripts/search.inline"
import { classNames } from "../util/lang"
+import { i18n } from "../i18n"
export interface SearchOptions {
enablePreview: boolean
@@ -13,13 +14,13 @@
}
export default ((userOpts?: Partial<SearchOptions>) => {
- function Search({ displayClass }: QuartzComponentProps) {
+ function Search({ displayClass, cfg }: QuartzComponentProps) {
const opts = { ...defaultOptions, ...userOpts }
-
+ const searchPlaceholder = i18n(cfg.locale).components.search.searchBarPlaceholder
return (
<div class={classNames(displayClass, "search")}>
<div id="search-icon">
- <p>Search</p>
+ <p>{i18n(cfg.locale).components.search.title}</p>
<div></div>
<svg
tabIndex={0}
@@ -43,8 +44,8 @@
id="search-bar"
name="search"
type="text"
- aria-label="Search for something"
- placeholder="Search for something"
+ aria-label={searchPlaceholder}
+ placeholder={searchPlaceholder}
/>
<div id="search-layout" data-preview={opts.enablePreview}></div>
</div>
--
Gitblit v1.10.0