Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _data/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ en: &EN
EMAIL_ME : "Send me an Email."
EMAIL_US : "Send us an Email."
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "Show All"

en-GB:
<<: *EN
Expand Down Expand Up @@ -51,6 +52,7 @@ zh-Hans: &ZH_HANS
EMAIL_ME : "给我发邮件。"
EMAIL_US : "给我们发邮件。"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "全部"

zh:
<<: *ZH_HANS
Expand Down Expand Up @@ -80,6 +82,7 @@ zh-Hant: &ZH_HANT
EMAIL_ME : "給我發郵件。"
EMAIL_US : "給我們發郵件。"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "全部"

zh-TW:
<<: *ZH_HANT
Expand Down Expand Up @@ -107,6 +110,7 @@ ko: &KO
EMAIL_ME : "이메일 보내기"
EMAIL_US : "이메일 보내기"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "모두 표시"

ko-KR:
<<: *KO
Expand All @@ -133,6 +137,7 @@ fr: &FR
EMAIL_US : "Envoyez-nous un courriel"
COPYRIGHT_DATES : "2020"
DONATE : "Faites un don de [NAME]."
TAGS_SHOW_ALL : "Afficher tous les"

fr-BE:
<<: *FR
Expand Down
4 changes: 3 additions & 1 deletion _includes/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
{%- if _tag_gap_size < 1 -%}
{%- assign _tag_gap_size = 1 -%}
{%- endif -%}
{%- include snippets/get-locale-string.html key='TAGS_SHOW_ALL' -%}
{%- assign _locale_tags_show_all = __return -%}
<div class="site-tags js-tags">
<ul class="menu">
<li>
<button type="button" class="button button--secondary button--pill tag-button tag-button--all" data-encode="">
Show All<div class="tag-button__count">{{ site.posts | size }}</div>
{{ _locale_tags_show_all }}<div class="tag-button__count">{{ site.posts | size }}</div>
</button>
</li>
{%- for _tag in _tags -%}
Expand Down
5 changes: 5 additions & 0 deletions test/_data/locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ en: &EN
EMAIL_ME : "Send me an Email."
EMAIL_US : "Send us an Email."
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "Show All"

en-GB:
<<: *EN
Expand Down Expand Up @@ -51,6 +52,7 @@ zh-Hans: &ZH_HANS
EMAIL_ME : "给我发邮件。"
EMAIL_US : "给我们发邮件。"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "全部"

zh:
<<: *ZH_HANS
Expand Down Expand Up @@ -80,6 +82,7 @@ zh-Hant: &ZH_HANT
EMAIL_ME : "給我發郵件。"
EMAIL_US : "給我們發郵件。"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "全部"

zh-TW:
<<: *ZH_HANT
Expand Down Expand Up @@ -107,6 +110,7 @@ ko: &KO
EMAIL_ME : "이메일 보내기"
EMAIL_US : "이메일 보내기"
COPYRIGHT_DATES : "2020"
TAGS_SHOW_ALL : "모두 표시"

ko-KR:
<<: *KO
Expand All @@ -133,6 +137,7 @@ fr: &FR
EMAIL_US : "Envoyez-nous un courriel"
COPYRIGHT_DATES : "2020"
DONATE : "Faites un don de [NAME]."
TAGS_SHOW_ALL : "Afficher tous les"

fr-BE:
<<: *FR
Expand Down