Skip to content

Commit

Permalink
chore(i18n): add the years translations
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed May 12, 2023
1 parent 45a975c commit 6f6c04a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/search/js/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class Form {

return `<div class="search-dropdown search-panel-action search-years" multiple>
<button class="search-dropdown-toggle" type="button" aria-expanded="false">
${params.icons['year']} <span class="search-dropdown-label">Years</span>
${params.icons['year']} <span class="search-dropdown-label">${i18n.translate('years')}</span>
</button>
<ul class="search-dropdown-menu">${items}</ul>
</div>`
Expand Down
3 changes: 3 additions & 0 deletions data/search/i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ other = "Suchen"

[to_select]
other = "Auswählen"

[years]
other = "Years"
3 changes: 3 additions & 0 deletions data/search/i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ other = "to search"

[to_select]
other = "to select"

[years]
other = "Years"
3 changes: 3 additions & 0 deletions data/search/i18n/nl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ other = "zoeken"

[to_select]
other = "selecteren"

[years]
other = "Years"
3 changes: 3 additions & 0 deletions data/search/i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ other = "搜索"

[to_select]
other = "选择"

[years]
other = "年份"
3 changes: 3 additions & 0 deletions data/search/i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ other = "搜索"

[to_select]
other = "選擇"

[years]
other = "年份"

0 comments on commit 6f6c04a

Please sign in to comment.