feat: impove i18n and clean code

This commit is contained in:
Dillon ZENG
2019-08-04 21:53:35 +08:00
parent 1e709b5ba4
commit c67a2a86a1
28 changed files with 471 additions and 798 deletions

View File

@@ -1,70 +0,0 @@
# Translations for German
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Geschrieben"
[by]
other = "durch"
[with]
other = "mit"
[on]
other = "auf"
[in]
other = "im"
[Author]
other = "Autor"
[Words]
other = "Wörter"
[Tag]
other = "Etikett"
[Home]
other = "Hause"
[back]
other = "Zurück"
[minute]
other = "minute"
[Share]
other = "Aktie"
# 404.html
[page]
other = "Seite"
[not]
other = "nicht"
[found]
other = "gefunden"
[return]
other = "Zurückkommen"
[to]
other = "zu"
# Pagination
[More]
other = "Mehr"
# Related post
[Related]
other = "Ähnliche"
[Articles]
other = "Artikel"

View File

@@ -1,70 +1,71 @@
# Translations for English
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
# === Post ===
[posts]
other = "Posts"
# === Post ===
[Written]
other = "Written"
[by]
other = "by"
[with]
other = "with"
[on]
other = "on"
[in]
other = "in"
[Author]
other = "Author"
[Words]
other = "Words"
[Tag]
# === Taxonomy ===
[tag]
other = "Tag"
[Home]
other = "Home"
[tags]
other = "Tags"
[category]
other = "Category"
[categories]
other = "Categories"
# === Taxonomy ===
# === Pagination ===
[More]
other = "More"
# === Pagination ===
# === partials/footer.html ===
[powered]
other = "Powered by %s"
[theme]
other = "Theme - "
# === partials/footer.html ===
# === posts/single.html ===
[wrote]
other = "wrote on"
[wordCount]
other = "about {{ .Count }} words"
[readingTime]
other = "{{ .Count }} min"
[author]
other = "Author"
[lastMod]
other = "Last Modified"
[share]
other = "Share"
[license]
other = "License"
[back]
other = "Back"
[minute]
other = "minute"
[home]
other = "Home"
# === posts/single.html ===
[Share]
other = "Share"
# === 404.html ===
[pageNotFound]
other = "Page not found"
# 404.html
[page]
other = "page"
[not]
other = "not"
[found]
other = "found"
[return]
other = "Return"
[to]
other = "to"
# Pagination
[More]
other = "More"
# Related post
[Related]
other = "Related"
[Articles]
other = "Articles"
[backToHome]
other = "Back to Home"
# === 404.html ===

View File

@@ -1,70 +0,0 @@
# Translations for Esperanto
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Skribita"
[by]
other = "de"
[with]
other = "kun"
[on]
other = "il"
[in]
other = "sur"
[Author]
other = "Aŭtoro"
[Words]
other = "Vortoj"
[Tag]
other = "Tag"
[Home]
other = "Hejmo"
[back]
other = "Reen"
[minute]
other = "minuto"
[Share]
other = "Kunhavigi"
# 404.html
[page]
other = "paĝo"
[not]
other = "ne"
[found]
other = "trovita"
[return]
other = "Revenu"
[to]
other = "al"
# Pagination
[More]
other = "Pli"
# Related post
[Related]
other = "Similaj"
[Articles]
other = "Artikoloj"

View File

@@ -1,70 +0,0 @@
# Translations for Spanish
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Escrito"
[by]
other = "por"
[with]
other = "con"
[on]
other = "en"
[in]
other = "en"
[Author]
other = "Autor"
[Words]
other = "Palabras"
[Tag]
other = "Etiqueta"
[Home]
other = "Casa"
[back]
other = "Atrás"
[minute]
other = "minuto"
[Share]
other = "Compartir"
# 404.html
[page]
other = "página"
[not]
other = "no"
[found]
other = "encontrada"
[return]
other = "Volver"
[to]
other = "a"
# Pagination
[More]
other = "Más"
# Related post
[Related]
other = "Artículos"
[Articles]
other = "Similares"

View File

@@ -1,70 +0,0 @@
# Translations for French
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Écrit"
[by]
other = "par"
[with]
other = "avec"
[on]
other = "sur"
[in]
other = "dans"
[Author]
other = "Auteur"
[Words]
other = "Mots"
[Tag]
other = "Étiquette"
[Home]
other = "Accueil"
[back]
other = "Retour"
[minute]
other = "minute"
[Share]
other = "Partager"
# 404.html
[page]
other = "Page"
[not]
other = "non"
[found]
other = "trouvée"
[return]
other = "Retourner"
[to]
other = "à"
# Pagination
[More]
other = "Plus"
# Related post
[Related]
other = "Articles"
[Articles]
other = "Similaires"

View File

@@ -1,71 +0,0 @@
# Translations for Italian
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Scritto"
[by]
other = "da"
[with]
other = "con"
[on]
other = "il"
[in]
other = "in"
[Author]
other = "Autore"
[Words]
other = "Parole"
[Tag]
other = "Tag"
[Home]
other = "Home"
[back]
other = "Indietro"
[minute]
other = "minuto"
[Share]
other = "Condividi"
# 404.html
[page]
other = "pagina"
[not]
other = "non"
[found]
other = "trovata"
[return]
other = "Torna"
[to]
other = "alla"
# Pagination
[More]
other = "Altro"
# Related post
[Related]
other = "Articoli"
[Articles]
other = "Correlati"

View File

@@ -1,71 +0,0 @@
# Translations for Albanian
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# Single.html
[Written]
other = "Shkruar"
[by]
other = "nga"
[with]
other = "me"
[on]
other = "në"
[in]
other = "në"
[Author]
other = "Autor"
[Words]
other = "Fjalë"
[Tag]
other = "Etiketë"
[Home]
other = "Shtëpi"
[back]
other = "Prapa"
[minute]
other = "minutë"
[Share]
other = "Pjesë"
# 404.html
[page]
other = "Faqja"
[not]
other = "nuk u"
[found]
other = "gjet"
[return]
other = "Kthehu"
[to]
other = "në"
# Pagination
[More]
other = "më shumë"
# Related post
[Related]
other = "Artikuj"
[Articles]
other = "Të lidhura"

71
i18n/zh.toml Normal file
View File

@@ -0,0 +1,71 @@
# Translations for Simplified Chinese
# https://gohugo.io/content-management/multilingual/#translation-of-strings
# === Post ===
[posts]
other = "文章"
# === Post ===
# === Taxonomy ===
[tag]
other = "标签"
[tags]
other = "标签"
[category]
other = "分类"
[categories]
other = "分类"
# === Taxonomy ===
# === Pagination ===
[More]
other = "更多"
# === Pagination ===
# === partials/footer.html ===
[powered]
other = "由 %s 强力驱动"
[theme]
other = "主题 - "
# === partials/footer.html ===
# === posts/single.html ===
[wrote]
other = "创作于"
[wordCount]
other = "约 {{ .Count }} 字"
[readingTime]
other = "预计阅读 {{ .Count }} 分钟"
[author]
other = "作者"
[lastMod]
other = "上次更新"
[share]
other = "内容分享"
[license]
other = "许可协议"
[back]
other = "返回"
[home]
other = "主页"
# === posts/single.html ===
# === 404.html ===
[pageNotFound]
other = "页面没找到"
[backToHome]
other = "回到主页"
# === 404.html ===