Skip to content

Commit

Permalink
feat: set placeholder for search input
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 3, 2024
1 parent 6023256 commit 91722a3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ other = "Yahoo"
[search_engine_yandex]
other = "Yandex"

[search_input_placeholder]
other = "Type to search"

[search_result_type_images]
other = "Images"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ other = "雅虎"
[search_engine_yandex]
other = "Yandex"

[search_input_placeholder]
other = "搜索"

[search_result_type_images]
other = "图片"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ other = "雅虎"
[search_engine_yandex]
other = "Yandex"

[search_input_placeholder]
other = "搜索"

[search_result_type_images]
other = "圖片"

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/hb/modules/theme-start/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<input
class="form-control form-control-lg rounded-pill w-100 hb-start-search-input shadow-sm"
aria-label="Keywords"
placeholder="{{ i18n `search_input_placeholder` }}"
{{ with $inputText }}value="{{ . }}"{{ end }}
name="{{ $preferredType.input_name }}" />
{{ partialCached "hb/modules/theme-start/engines" $engines }}
Expand Down

0 comments on commit 91722a3

Please sign in to comment.