From 10ba5533e5c969801ab58ac63740f6b4596246b4 Mon Sep 17 00:00:00 2001 From: Xin Date: Wed, 1 Nov 2023 16:26:54 -0400 Subject: [PATCH] i18n: refactor translations for docs site (#181) * 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 --- exampleSite/content/about/index.ja.md | 20 -------------- exampleSite/content/docs/_index.ja.md | 17 ------------ .../content/docs/getting-started.ja.md | 6 ----- .../docs/guide/shortcodes/_index.ja.md | 6 ----- exampleSite/hugo.yaml | 6 +---- exampleSite/i18n/zh-cn.yaml | 6 +++++ i18n/en.yaml | 3 +++ i18n/fr.yaml | 6 ----- i18n/ja.yaml | 27 +++++++++---------- i18n/ko.yaml | 4 +++ i18n/nb.yaml | 3 +++ i18n/nn.yaml | 3 +++ i18n/pt.yaml | 6 ----- i18n/sw.yaml | 14 +++++++--- i18n/vi.yaml | 16 +++++++---- i18n/zh-cn.yaml | 7 ----- i18n/zh-tw.yaml | 24 ++++++++--------- 17 files changed, 65 insertions(+), 109 deletions(-) delete mode 100644 exampleSite/content/about/index.ja.md delete mode 100644 exampleSite/content/docs/_index.ja.md delete mode 100644 exampleSite/content/docs/getting-started.ja.md delete mode 100644 exampleSite/content/docs/guide/shortcodes/_index.ja.md create mode 100644 exampleSite/i18n/zh-cn.yaml diff --git a/exampleSite/content/about/index.ja.md b/exampleSite/content/about/index.ja.md deleted file mode 100644 index 934e20ab..00000000 --- a/exampleSite/content/about/index.ja.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: "このサイトについて" -toc: false ---- - -Hextraは、現代的な静的ウェブサイトを構築するためのシンプルで高速で柔軟なテーマとして設計されています。特にドキュメンテーションウェブサイトに適していますが、ブログ、ポートフォリオなどのさまざまなタイプのサイトにも使用できます。 - -Hugoは、Jekyllと同様に静的サイトジェネレーターです。Hugoの特徴は、単一のバイナリであることで、さまざまなプラットフォームで簡単にインストールして実行できることです。また、数千ページのサイトをミリ秒単位でレンダリングできるほど非常に高速で信頼性があります。 - -Hextraは、最小限のフットプリントに焦点を当てた考え方で構築されています。始めるためには、Node.jsのような追加の依存関係は必要ありません。必要なのは、単一のYAML設定ファイルと、Markdownのコンテンツだけです。そのため、ツールのセットアップではなく、質の高いコンテンツの作成に集中できます。 - -## クレジット - -Hextraをビルドするには、次のツールとインスピレーションが必要です: - -- [Hugo](https://gohugo.io/) -- [Tailwind CSS](https://tailwindcss.com/) -- [Heroicons](https://heroicons.com/) -- [Nextra](https://nextra.vercel.app/) -- [Next.js](https://nextjs.org/) diff --git a/exampleSite/content/docs/_index.ja.md b/exampleSite/content/docs/_index.ja.md deleted file mode 100644 index e3506fec..00000000 --- a/exampleSite/content/docs/_index.ja.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -linkTitle: "ドキュメンテーション" -title: Hextraへようこそ ---- - -👋 こんにちは!Hextraドキュメンテーションへようこそ! - - - -## Hextraとは? - -Hextraは、[Hugo][hugo]テーマの一つで、[Tailwind CSS][tailwind-css]を使用して作られた、現代的で高速なバッテリー内蔵のテーマです。 -ドキュメンテーション、ブログ、ウェブサイトの美しいウェブサイトを構築するために設計され、様々な要件に対応するための機能と柔軟性を提供します。 - -[hugo]: https://gohugo.io/ -[flex-search]: https://github.com/nextapps-de/flexsearch -[tailwind-css]: https://tailwindcss.com/ diff --git a/exampleSite/content/docs/getting-started.ja.md b/exampleSite/content/docs/getting-started.ja.md deleted file mode 100644 index a0ac2036..00000000 --- a/exampleSite/content/docs/getting-started.ja.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: はじめに -weight: 1 ---- - -プロジェクトの紹介。 diff --git a/exampleSite/content/docs/guide/shortcodes/_index.ja.md b/exampleSite/content/docs/guide/shortcodes/_index.ja.md deleted file mode 100644 index 6edfed5f..00000000 --- a/exampleSite/content/docs/guide/shortcodes/_index.ja.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: コンポーネント -weight: 2 ---- - -Hextraは、[Hugo Shortcodes](https://gohugo.io/content-management/shortcodes/)に基づいたさまざまな組み込みコンポーネントを提供しています。 diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index bf95137c..5dabe8eb 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -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: diff --git a/exampleSite/i18n/zh-cn.yaml b/exampleSite/i18n/zh-cn.yaml new file mode 100644 index 00000000..fac84111 --- /dev/null +++ b/exampleSite/i18n/zh-cn.yaml @@ -0,0 +1,6 @@ +documentation: "文档" +showcase: "项目展示" +blog: "博客" +about: "关于" +more: "更多" +hugoDocs: "Hugo 文档 ↗" diff --git a/i18n/en.yaml b/i18n/en.yaml index 6afbec1f..a31683fb 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -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..." diff --git a/i18n/fr.yaml b/i18n/fr.yaml index c7480dc8..71ea1570 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -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" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 1dd706e6..682dd2b9 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -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: "検索..." diff --git a/i18n/ko.yaml b/i18n/ko.yaml index c27ba9f5..f2b0b8b1 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -2,8 +2,12 @@ backToTop: "맨위로 스크롤" changeLanguage: "언어변경" changeTheme: "테마변경" copyright: "© 2023 Hextra Project." +dark: "어두운 테마" editThisPage: "Github에서 편집하기 →" lastUpdated: "마지막 수정일자" +light: "밝은 테마" +noResultsFound: "결과 없음" onThisPage: "페이지 목차" +poweredBy: "제공 Hextra" readMore: "더보기 →" searchPlaceholder: "검색..." diff --git a/i18n/nb.yaml b/i18n/nb.yaml index 57c2f4eb..2125075e 100644 --- a/i18n/nb.yaml +++ b/i18n/nb.yaml @@ -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..." diff --git a/i18n/nn.yaml b/i18n/nn.yaml index 6ae7174c..f6fdace2 100644 --- a/i18n/nn.yaml +++ b/i18n/nn.yaml @@ -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..." diff --git a/i18n/pt.yaml b/i18n/pt.yaml index 7618aa7c..9ae35f43 100644 --- a/i18n/pt.yaml +++ b/i18n/pt.yaml @@ -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" diff --git a/i18n/sw.yaml b/i18n/sw.yaml index ffda9122..8494f2ed 100644 --- a/i18n/sw.yaml +++ b/i18n/sw.yaml @@ -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..." diff --git a/i18n/vi.yaml b/i18n/vi.yaml index 65e6805a..bc203125 100644 --- a/i18n/vi.yaml +++ b/i18n/vi.yaml @@ -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..." diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index 1cced98e..d101a229 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -1,10 +1,3 @@ -documentation: "文档" -showcase: "项目展示" -blog: "博客" -about: "关于" -more: "更多" -hugoDocs: "Hugo 文档 ↗" - backToTop: "返回顶部" changeLanguage: "切换语言" changeTheme: "切换主题" diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml index 91c0a822..5284021e 100644 --- a/i18n/zh-tw.yaml +++ b/i18n/zh-tw.yaml @@ -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: "搜尋文檔..."