From 05fd0129c2cc7ea0a2fb1faf5ac0c4f5624dbdb5 Mon Sep 17 00:00:00 2001 From: yuri <1969yuri1969@gmail.com> Date: Sun, 15 Jun 2025 11:29:43 +0200 Subject: [PATCH] fix(i18n): add missing tags translations (#708) --- exampleSite/content/blog/markdown.zh-cn.md | 4 ++++ exampleSite/content/docs/getting-started.fa.md | 3 +++ exampleSite/content/docs/getting-started.ja.md | 3 +++ exampleSite/content/docs/getting-started.zh-cn.md | 3 +++ exampleSite/content/docs/guide/configuration.fa.md | 13 +++++++++++++ exampleSite/content/docs/guide/configuration.ja.md | 13 +++++++++++++ .../content/docs/guide/configuration.zh-cn.md | 13 +++++++++++++ i18n/cs.yaml | 1 + i18n/de.yaml | 1 + i18n/en.yaml | 1 + i18n/es.yaml | 1 + i18n/fa.yaml | 1 + i18n/fr.yaml | 1 + i18n/he.yaml | 1 + i18n/ja.yaml | 1 + i18n/ko.yaml | 1 + i18n/nb.yaml | 1 + i18n/nl.yaml | 1 + i18n/nn.yaml | 1 + i18n/pt.yaml | 1 + i18n/ro.yaml | 3 ++- i18n/ru.yaml | 1 + i18n/sw.yaml | 1 + i18n/uk.yaml | 1 + i18n/vi.yaml | 1 + i18n/zh-cn.yaml | 1 + i18n/zh-tw.yaml | 1 + 27 files changed, 73 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/blog/markdown.zh-cn.md b/exampleSite/content/blog/markdown.zh-cn.md index ad414c8..9eeba01 100644 --- a/exampleSite/content/blog/markdown.zh-cn.md +++ b/exampleSite/content/blog/markdown.zh-cn.md @@ -4,6 +4,10 @@ date: 2020-01-01 authors: - name: John Doe link: https://example.com/johndoe +tags: + - Markdown + - 示例 + - 指南 excludeSearch: true --- diff --git a/exampleSite/content/docs/getting-started.fa.md b/exampleSite/content/docs/getting-started.fa.md index e2cc26a..a4dad01 100644 --- a/exampleSite/content/docs/getting-started.fa.md +++ b/exampleSite/content/docs/getting-started.fa.md @@ -1,6 +1,9 @@ --- title: شروع کنید weight: 1 +tags: + - مستندات + - راهنما next: /docs/guide prev: /docs --- diff --git a/exampleSite/content/docs/getting-started.ja.md b/exampleSite/content/docs/getting-started.ja.md index 4b218c9..54f6db0 100644 --- a/exampleSite/content/docs/getting-started.ja.md +++ b/exampleSite/content/docs/getting-started.ja.md @@ -1,6 +1,9 @@ --- title: はじめに weight: 1 +tags: + - ドキュメント + - ガイド next: /docs/guide prev: /docs --- diff --git a/exampleSite/content/docs/getting-started.zh-cn.md b/exampleSite/content/docs/getting-started.zh-cn.md index 3499870..205f4d9 100644 --- a/exampleSite/content/docs/getting-started.zh-cn.md +++ b/exampleSite/content/docs/getting-started.zh-cn.md @@ -1,6 +1,9 @@ --- title: 入门指南 weight: 1 +tags: + - 文档 + - 指南 next: /docs/guide prev: /docs --- diff --git a/exampleSite/content/docs/guide/configuration.fa.md b/exampleSite/content/docs/guide/configuration.fa.md index 4b5ce34..edeccc3 100644 --- a/exampleSite/content/docs/guide/configuration.fa.md +++ b/exampleSite/content/docs/guide/configuration.fa.md @@ -212,6 +212,19 @@ params: پارامتر `theme.displayToggle` به شما این امکان را می‌دهد که یک دکمه جابجایی برای تغییر حالت تم‌ها نمایش دهید. وقتی روی `true` تنظیم شود، بازدیدکنندگان می‌توانند بین حالت روشن یا تیره جابه‌جا شوند و تنظیمات پیش‌فرض را نادیده بگیرند. +### برچسب‌ها + +برای نمایش برچسب‌های صفحه، گزینه‌های زیر را در فایل پیکربندی تنظیم کنید: + +```yaml {filename="hugo.yaml"} +params: + blog: + list: + displayTags: true + toc: + displayTags: true +``` + ### عرض صفحه عرض صفحه را می‌توان با پارامتر `params.page.width` در پرونده پیکربندی سفارشی کرد: diff --git a/exampleSite/content/docs/guide/configuration.ja.md b/exampleSite/content/docs/guide/configuration.ja.md index 739b85a..e0e7f0e 100644 --- a/exampleSite/content/docs/guide/configuration.ja.md +++ b/exampleSite/content/docs/guide/configuration.ja.md @@ -212,6 +212,19 @@ params: `theme.displayToggle`パラメータを使用して、テーマを変更するためのトグルボタンを表示できます。 `true`に設定すると、訪問者はデフォルト設定を上書きしてライトモードとダークモードを切り替えることができます。 +### タグ + +ページのタグを表示するには、設定ファイルで次のフラグを設定してください: + +```yaml {filename="hugo.yaml"} +params: + blog: + list: + displayTags: true + toc: + displayTags: true +``` + ### ページ幅 ページの幅は、設定ファイルの`params.page.width`パラメータでカスタマイズできます: diff --git a/exampleSite/content/docs/guide/configuration.zh-cn.md b/exampleSite/content/docs/guide/configuration.zh-cn.md index ff748d6..a008da0 100644 --- a/exampleSite/content/docs/guide/configuration.zh-cn.md +++ b/exampleSite/content/docs/guide/configuration.zh-cn.md @@ -212,6 +212,19 @@ params: `theme.displayToggle` 参数允许您显示一个切换按钮以更改主题。 当设置为 `true` 时,访问者可以在浅色或深色模式之间切换,覆盖默认设置。 +### 标签 + +要显示页面标签,请在配置文件中设置以下标志: + +```yaml {filename="hugo.yaml"} +params: + blog: + list: + displayTags: true + toc: + displayTags: true +``` + ### 页面宽度 页面的宽度可以通过配置文件中的 `params.page.width` 参数进行自定义: diff --git a/i18n/cs.yaml b/i18n/cs.yaml index 0ea697d..2c7316e 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -9,6 +9,7 @@ lastUpdated: "Naposledy změněno" light: "Světlý" noResultsFound: "Nebylo nic nalezeno." onThisPage: "Na této stránce" +tags: "Tagy" poweredBy: "Powered by Hextra" readMore: "Přečíst víc →" searchPlaceholder: "Hledat..." diff --git a/i18n/de.yaml b/i18n/de.yaml index 101fb59..d46c4be 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -9,6 +9,7 @@ lastUpdated: "Zuletzt aktualisiert am" light: "Hell" noResultsFound: "Keine Ergebnisse gefunden." onThisPage: "Auf dieser Seite" +tags: "Schlagwörter" poweredBy: "Unterstützt durch Hextra" readMore: "Mehr lesen →" searchPlaceholder: "Suchen..." diff --git a/i18n/en.yaml b/i18n/en.yaml index 0f88c25..cd9115c 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -9,6 +9,7 @@ lastUpdated: "Last updated on" light: "Light" noResultsFound: "No results found." onThisPage: "On this page" +tags: "Tags" poweredBy: "Powered by Hextra" readMore: "Read more →" searchPlaceholder: "Search..." diff --git a/i18n/es.yaml b/i18n/es.yaml index 29ade59..2ca9738 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -8,6 +8,7 @@ lastUpdated: "Última actualización" light: "Claro" noResultsFound: "No hubo resultados." onThisPage: "En esta página" +tags: "Etiquetas" poweredBy: "Con tecnología de Hextra" readMore: "Leer más →" searchPlaceholder: "Buscar..." diff --git a/i18n/fa.yaml b/i18n/fa.yaml index c97766c..9264a08 100644 --- a/i18n/fa.yaml +++ b/i18n/fa.yaml @@ -9,6 +9,7 @@ lastUpdated: "آخرین به‌روزرسانی در" light: "روشن" noResultsFound: "هیچ نتیجه‌ای پیدا نشد." onThisPage: "در این صفحه" +tags: "برچسب‌ها" poweredBy: "طراحی شده توسط هگزترا" readMore: "ادامه مطلب ←" searchPlaceholder: "جستجو..." diff --git a/i18n/fr.yaml b/i18n/fr.yaml index a514dd5..3be50d3 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -8,6 +8,7 @@ lastUpdated: "Dernière modification" light: "Clair" noResultsFound: "Pas de résultats trouvés" onThisPage: "Sur cette page" +tags: "Étiquettes" poweredBy: "Propulsé par Hextra" readMore: "Lire plus →" searchPlaceholder: "Rechercher..." diff --git a/i18n/he.yaml b/i18n/he.yaml index d83d47b..dc5d42a 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -9,6 +9,7 @@ lastUpdated: "עודכן לאחרונה ב" light: "בהיר" noResultsFound: "לא נמצאו תוצאות." onThisPage: "בעמוד זה" +tags: "תגיות" poweredBy: "Hextra מופעל על-ידי" readMore: "← קרא עוד" searchPlaceholder: "חיפוש..." diff --git a/i18n/ja.yaml b/i18n/ja.yaml index a8bf3de..6f86af4 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -8,6 +8,7 @@ lastUpdated: "最終更新日" light: "ライト" noResultsFound: "結果が見つかりませんでした。" onThisPage: "このページの内容" +tags: "タグ" poweredBy: "提供元 Hextra" readMore: "もっと読む →" searchPlaceholder: "検索..." diff --git a/i18n/ko.yaml b/i18n/ko.yaml index a353018..e681841 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -8,6 +8,7 @@ lastUpdated: "마지막 수정일자" light: "밝은 테마" noResultsFound: "결과 없음" onThisPage: "페이지 목차" +tags: "태그" poweredBy: "제공 Hextra" readMore: "더보기 →" searchPlaceholder: "검색..." diff --git a/i18n/nb.yaml b/i18n/nb.yaml index f740195..c226f6b 100644 --- a/i18n/nb.yaml +++ b/i18n/nb.yaml @@ -8,6 +8,7 @@ lastUpdated: "Sist oppdatert" light: "Lys" noResultsFound: "Fant ingen treff." onThisPage: "På denne siden" +tags: "Stikkord" poweredBy: "Powered by Hextra" readMore: "Les mer →" searchPlaceholder: "Søk..." diff --git a/i18n/nl.yaml b/i18n/nl.yaml index 08ab70c..3d45b4e 100644 --- a/i18n/nl.yaml +++ b/i18n/nl.yaml @@ -9,6 +9,7 @@ lastUpdated: "Laatst bijgewerkt op" light: "Licht" noResultsFound: "Geen resultaten gevonden." onThisPage: "Op deze pagina" +tags: "Labels" poweredBy: "Mogelijk gemaakt door Hextra" readMore: "Lees meer →" searchPlaceholder: "Zoeken..." diff --git a/i18n/nn.yaml b/i18n/nn.yaml index cc96276..f9dea63 100644 --- a/i18n/nn.yaml +++ b/i18n/nn.yaml @@ -8,6 +8,7 @@ lastUpdated: "Sist oppdatert" light: "Ljos" noResultsFound: "Fann ingen treff." onThisPage: "På denne sida" +tags: "Stikkord" poweredBy: "Powered by Hextra" readMore: "Les meir →" searchPlaceholder: "Søk..." diff --git a/i18n/pt.yaml b/i18n/pt.yaml index 1f41c96..b96ba0d 100644 --- a/i18n/pt.yaml +++ b/i18n/pt.yaml @@ -8,6 +8,7 @@ lastUpdated: "Última modificação" light: "Claro" noResultsFound: "Nenhum resultado encontrado" onThisPage: "Nesta página" +tags: "Etiquetas" poweredBy: "Com a tecnologia de Hextra" readMore: "Ler mais →" searchPlaceholder: "Procurar..." diff --git a/i18n/ro.yaml b/i18n/ro.yaml index edad27e..d08883a 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -9,6 +9,7 @@ lastUpdated: "Ultima actualizare la" light: "Lumină" noResultsFound: "Nici un rezultat găsit." onThisPage: "Pe această pagină" +tags: "Etichete" poweredBy: "Susținut de Hextra" readMore: "Citește mai mult ←" -searchPlaceholder: "Caută..." +searchPlaceholder: "Caută..." diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 086b1a2..c73acab 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -9,6 +9,7 @@ lastUpdated: 'Последнее обновление' light: 'Светлая' noResultsFound: 'Ничего не найдено.' onThisPage: 'На этой странице' +tags: 'Теги' poweredBy: 'При поддержке Hextra' readMore: 'Читать далее →' searchPlaceholder: 'Поиск...' diff --git a/i18n/sw.yaml b/i18n/sw.yaml index 6220eef..16271bd 100644 --- a/i18n/sw.yaml +++ b/i18n/sw.yaml @@ -8,6 +8,7 @@ lastUpdated: "Ilisasishwa mwisho" light: "Meupe" noResultsFound: "Hakuna matokeo yalipopatikana." onThisPage: "Kwenye ukurasa huu" +tags: "Lebo" poweredBy: "Inaendeshwa na Hextra" readMore: "Soma zaidi →" searchPlaceholder: "Tafuta..." diff --git a/i18n/uk.yaml b/i18n/uk.yaml index 6c501c3..d5988f8 100644 --- a/i18n/uk.yaml +++ b/i18n/uk.yaml @@ -9,6 +9,7 @@ lastUpdated: "Востаннє оновлено" light: "Світла" noResultsFound: "Не знайдено результатів" onThisPage: "На цій сторінці" +tags: "Теги" poweredBy: "Працює завдяки Hextra" readMore: "Читати більше →" searchPlaceholder: "Пошук..." diff --git a/i18n/vi.yaml b/i18n/vi.yaml index 9e7b576..cd38721 100644 --- a/i18n/vi.yaml +++ b/i18n/vi.yaml @@ -8,6 +8,7 @@ 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" +tags: "Thẻ" 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 e5ddaa3..cc7f64e 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -8,6 +8,7 @@ lastUpdated: "最后更新于" light: "浅色" noResultsFound: "无结果" onThisPage: "此页上" +tags: "标签" poweredBy: "由 Hextra 驱动" readMore: "更多 →" searchPlaceholder: "搜索文档..." diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml index c29e891..9acf6c5 100644 --- a/i18n/zh-tw.yaml +++ b/i18n/zh-tw.yaml @@ -8,6 +8,7 @@ lastUpdated: "最後更新於" light: "淺色" noResultsFound: "無結果" onThisPage: "此頁上" +tags: "標籤" poweredBy: "由 Hextra 驅動" readMore: "更多 →" searchPlaceholder: "搜尋文檔..."