Skip to content

Commit

Permalink
i18n: refactor translations for docs site (#181)
Browse files Browse the repository at this point in the history
* i18n: move some translations under example site

* chore: update i18n/ja.yaml

* i18n: update zh-tw.yaml

* i18n: update fr.yaml

* i18n: update pt.yaml

* i18n: update ko.yaml

* i18n: update nb.yaml and nn.yaml

* i18n: update sw.yaml

* i18n: update vi.yaml

* i18n: update sw.yaml

* docs: clean up ja site as it's incomplete
  • Loading branch information
imfing authored Nov 1, 2023
1 parent 433beed commit 10ba553
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 109 deletions.
20 changes: 0 additions & 20 deletions exampleSite/content/about/index.ja.md

This file was deleted.

17 changes: 0 additions & 17 deletions exampleSite/content/docs/_index.ja.md

This file was deleted.

6 changes: 0 additions & 6 deletions exampleSite/content/docs/getting-started.ja.md

This file was deleted.

6 changes: 0 additions & 6 deletions exampleSite/content/docs/guide/shortcodes/_index.ja.md

This file was deleted.

6 changes: 1 addition & 5 deletions exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ languages:
languageName: English
weight: 1
title: Hextra
ja:
languageName: 日本語
weight: 2
title: "Hextra テーマ"
zh-cn:
languageName: 简体中文
languageCode: zh-CN
weight: 3
weight: 2
title: Hextra

module:
Expand Down
6 changes: 6 additions & 0 deletions exampleSite/i18n/zh-cn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
documentation: "文档"
showcase: "项目展示"
blog: "博客"
about: "关于"
more: "更多"
hugoDocs: "Hugo 文档 ↗"
3 changes: 3 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ backToTop: "Scroll to top"
changeLanguage: "Change language"
changeTheme: "Change theme"
copyright: "© 2023 Hextra Project."
dark: "Dark"
editThisPage: "Edit this page on GitHub →"
lastUpdated: "Last updated on"
light: "Light"
noResultsFound: "No results found."
onThisPage: "On this page"
poweredBy: "Powered by Hextra"
readMore: "Read more →"
searchPlaceholder: "Search..."
6 changes: 0 additions & 6 deletions i18n/fr.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
about: "À propos"
backToTop: "Revenir en haut"
blog: "Blog"
changeLanguage: "Changer la langue"
changeTheme: "Thème d'affichage"
copyright: "© 2023 Hextra Project."
dark: "Sombre"
documentation: "Documentation"
editThisPage: "Modifier cette page sur GitHub →"
hugoDocs: "Docs Hugo ↗"
lastUpdated: "Dernière modification"
light: "Clair"
more: "Plus"
noResultsFound: "Pas de résultats trouvés"
onThisPage: "Sur cette page"
poweredBy: "Propulsé par Hextra"
readMore: "Lire plus →"
searchPlaceholder: "Rechercher..."
showcase: "Showcase"
27 changes: 12 additions & 15 deletions i18n/ja.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Navbar
documentation: "ドキュメンテーション"
blog: "ブログ"
about: "このサイトについて"

more: "もっと"
hugoDocs: "Hugoドキュメント ↗"

searchPlaceholder: "検索ドキュメント..."
noResultsFound: "検索結果が見つかりませんでした"

onThisPage: "このページでは"
editThisPage: "このページをGitHubで編集する →"
backToTop: "トップにスクロール"
changeLanguage: "言語を変更"
changeTheme: "テーマを変更"
copyright: "© 2023 Hextra プロジェクト。"
dark: "ダーク"
editThisPage: "このページをGitHubで編集 →"
lastUpdated: "最終更新日"

copyright: "© 2023 Hextra Project."
light: "ライト"
noResultsFound: "結果が見つかりませんでした。"
onThisPage: "このページの内容"
poweredBy: "提供元 Hextra"
readMore: "もっと読む →"
searchPlaceholder: "検索..."
4 changes: 4 additions & 0 deletions i18n/ko.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ backToTop: "맨위로 스크롤"
changeLanguage: "언어변경"
changeTheme: "테마변경"
copyright: "© 2023 Hextra Project."
dark: "어두운 테마"
editThisPage: "Github에서 편집하기 →"
lastUpdated: "마지막 수정일자"
light: "밝은 테마"
noResultsFound: "결과 없음"
onThisPage: "페이지 목차"
poweredBy: "제공 Hextra"
readMore: "더보기 →"
searchPlaceholder: "검색..."
3 changes: 3 additions & 0 deletions i18n/nb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ backToTop: "Gå til toppen"
changeLanguage: "Endre språk"
changeTheme: "Endre tema"
copyright: "© 2023 Hextra-prosjektet."
dark: "Mørk"
editThisPage: "Rediger denne siden på GitHub →"
lastUpdated: "Sist oppdatert"
light: "Lys"
noResultsFound: "Fant ingen treff."
onThisPage: "På denne siden"
poweredBy: "Powered by Hextra"
readMore: "Les mer →"
searchPlaceholder: "Søk..."
3 changes: 3 additions & 0 deletions i18n/nn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ backToTop: "Gå til toppen"
changeLanguage: "Endre språk"
changeTheme: "Endre tema"
copyright: "© 2023 Hextra-prosjektet."
dark: "Mørk"
editThisPage: "Rediger denne sida på GitHub →"
lastUpdated: "Sist oppdatert"
light: "Ljos"
noResultsFound: "Fann ingen treff."
onThisPage: "På denne sida"
poweredBy: "Powered by Hextra"
readMore: "Les meir →"
searchPlaceholder: "Søk..."
6 changes: 0 additions & 6 deletions i18n/pt.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
about: "Sobre"
backToTop: "Voltar ao topo"
blog: "Blog"
changeLanguage: "Mudar a língua"
changeTheme: "Mudar tema"
copyright: "© 2023 Projecto Hextra."
dark: "Escuro"
documentation: "Documentação"
editThisPage: "Edita esta página no GitHub →"
hugoDocs: "Docs Hugo ↗"
lastUpdated: "Última modificação"
light: "Claro"
more: "Mais"
noResultsFound: "Nenhum resultado encontrado"
onThisPage: "Nesta página"
poweredBy: "Com a tecnologia de Hextra"
readMore: "Ler mais →"
searchPlaceholder: "Procurar..."
showcase: "Mostruário"
14 changes: 11 additions & 3 deletions i18n/sw.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
onThisPage: "Kwenye ukurasa huu"
editThisPage: "Hariri ukurasa huu kwenye GitHub →"
lastUpdated: "Ilisasishwa mwisho"
backToTop: "Tembeza hadi juu"
changeLanguage: "Badilisha lugha"
changeTheme: "Badilisha mandhari"
copyright: "© 2023 Hextra Project."
dark: "Meusi"
editThisPage: "Hariri ukurasa huu kwenye GitHub →"
lastUpdated: "Ilisasishwa mwisho"
light: "Nuru"
noResultsFound: "Hakuna matokeo yalipopatikana."
onThisPage: "Kwenye ukurasa huu"
poweredBy: "Inaendeshwa na Hextra"
readMore: "Soma zaidi →"
searchPlaceholder: "Tafuta..."
16 changes: 11 additions & 5 deletions i18n/vi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
onThisPage: "Ở trang này"
editThisPage: "Sửa trang này trên GitHub →"
lastUpdated: "Lần cuối cập nhật lúc"

backToTop: "Lướt lên đầu trang"

changeLanguage: "Đổi ngôn ngữ"
changeTheme: "Đổi chủ đề"
copyright: "© 2023 Hextra Project."
dark: "Tối"
editThisPage: "Sửa trang này trên GitHub →"
lastUpdated: "Lần cuối cập nhật lúc"
light: "Sáng"
noResultsFound: "Không tìm thấy kết quả."
onThisPage: "Ở trang này"
poweredBy: "Chạy bởi Hextra"
readMore: "Đọc thêm →"
searchPlaceholder: "Tìm kiếm..."
7 changes: 0 additions & 7 deletions i18n/zh-cn.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
documentation: "文档"
showcase: "项目展示"
blog: "博客"
about: "关于"
more: "更多"
hugoDocs: "Hugo 文档 ↗"

backToTop: "返回顶部"
changeLanguage: "切换语言"
changeTheme: "切换主题"
Expand Down
24 changes: 11 additions & 13 deletions i18n/zh-tw.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
documentation: "文檔"
blog: "博客"
about: "關於"

more: "更多"
hugoDocs: "Hugo 文檔 ↗"

searchPlaceholder: "搜索文檔..."
noResultsFound: "無結果"

onThisPage: "此頁上"
backToTop: "返回頂部"
changeLanguage: "切換語言"
changeTheme: "切換主題"
copyright: "© 2023 Hextra Project."
dark: "深色"
editThisPage: "在 GitHub 上編輯此頁 →"
lastUpdated: "最後更新於"

copyright: "© 2023 Hextra Project."
light: "淺色"
noResultsFound: "無結果"
onThisPage: "此頁上"
poweredBy: "由 Hextra 驅動"
readMore: "更多 →"
searchPlaceholder: "搜尋文檔..."

0 comments on commit 10ba553

Please sign in to comment.