Skip to content

Commit

Permalink
i18n: add the search input placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jan 29, 2023
1 parent 527ba2d commit ffa7346
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ other = "Advanced"
[search_date]
other = "Date"

[search_input_placeholder]
other = "Type to search"

[search_missing_keywords]
other = "Please enter search keywords"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ other = "高级"
[search_date]
other = "日期"

[search_input_placeholder]
other = "请输入关键词"

[search_missing_keywords]
other = "请输入搜索关键词"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ other = "高级"
[search_date]
other = "日期"

[search_input_placeholder]
other = "请输入关键词"

[search_missing_keywords]
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 @@ -226,6 +226,9 @@ other = "高級"
[search_date]
other = "日期"

[search_input_placeholder]
other = "請輸入關鍵詞"

[search_missing_keywords]
other = "請輸入搜尋關鍵詞"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ other = "高級"
[search_date]
other = "日期"

[search_input_placeholder]
other = "請輸入關鍵詞"

[search_missing_keywords]
other = "請輸入搜索關鍵詞"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-tw.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ other = "高級"
[search_date]
other = "日期"

[search_input_placeholder]
other = "請輸入關鍵詞"

[search_missing_keywords]
other = "請輸入搜尋關鍵詞"

Expand Down
8 changes: 7 additions & 1 deletion layouts/partials/header/search-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
<span class="btn btn-search disabled position-absolute left-0 border-0 px-1">
<i class="fas fa-fw fa-search fa-lg"></i>
</span>
<input class="my-1 form-control border-white rounded search-input bg-body" name="q" type="search" aria-label="Search" required>
<input
class="my-1 form-control border-white rounded search-input bg-body"
name="q"
type="search"
placeholder="{{ `search_input_placeholder` | i18n }}"
aria-label="Search"
required>
</div>
</form>
{{- end }}
Expand Down

0 comments on commit ffa7346

Please sign in to comment.