Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(i18n): fix i18n files
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Mar 3, 2020
1 parent 7d3a2ce commit cbfc965
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 43 deletions.
16 changes: 2 additions & 14 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ other = "about {{ .Count }} words"
[readingTime]
other = "{{ .Count }} min"

[pageviews]
other = "<span class=leancloud-visitors-count></span> pageviews"
[views]
other = "views"

[author]
other = "Author"
Expand All @@ -90,18 +90,6 @@ other = "Home"

[readMore]
other = "Read More"

[day]
other = "d"

[hour]
other = "hr"

[minute]
other = "min"

[second]
other = "sec"
# === posts/single.html ===

# === 404.html ===
Expand Down
19 changes: 5 additions & 14 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ other = "environ {{ .Count }} mots"
[readingTime]
other = "{{ .Count }} min"

[pageviews]
other = "<span class=leancloud-visitors-count></span> vues"
[views]
other = "vues"

[author]
other = "Auteur"
Expand All @@ -79,6 +79,9 @@ other = "Dernière mise à jour le %s"
[license]
other = "Publié sous licence %s"

[seeMarkdown]
other = "Lire Markdown"

[back]
other = "Retour"

Expand All @@ -87,18 +90,6 @@ other = "Accueil"

[readMore]
other = "En savoir plus"

[day]
other = "j"

[hour]
other = "hr"

[minute]
other = "min"

[second]
other = "sec"
# === posts/single.html ===

# === 404.html ===
Expand Down
16 changes: 2 additions & 14 deletions i18n/zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ other = "约 {{ .Count }} 字"
[readingTime]
other = "预计阅读 {{ .Count }} 分钟"

[pageviews]
other = "<span class=leancloud-visitors-count></span> 次阅读"
[views]
other = "次阅读"

[author]
other = "作者"
Expand All @@ -90,18 +90,6 @@ other = "主页"

[readMore]
other = "阅读全文"

[day]
other = ""

[hour]
other = ""

[minute]
other = ""

[second]
other = ""
# === posts/single.html ===

# === 404.html ===
Expand Down
2 changes: 1 addition & 1 deletion layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1 class="single-title animated flipInX">{{ .Title }}</h1>
<i class="far fa-clock fa-fw"></i>{{ T "readingTime" .ReadingTime }}&nbsp;
{{- if $scratch.Get "production" | and .Site.Params.valine.enable | and .Site.Params.valine.visitor -}}
<span id="{{ .RelPermalink | relURL }}" class="leancloud_visitors" data-flag-title="{{ .Title }}">
<i class="far fa-eye fa-fw"></i>{{ T "pageviews" | safeHTML }}
<i class="far fa-eye fa-fw"></i><span class=leancloud-visitors-count></span>&nbsp;{{ T "views" }}
</span>&nbsp;
{{- end -}}
</div>
Expand Down

0 comments on commit cbfc965

Please sign in to comment.