From 5699510c36144511fb2a557fa144cb8d8686157b Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 19 Mar 2022 22:41:37 +0000 Subject: [PATCH 01/12] refactor(article): remove article toolbar style --- assets/scss/partials/layout/article.scss | 41 ------------------------ 1 file changed, 41 deletions(-) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 36f326a..eb58e77 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -77,47 +77,6 @@ } } -#article-toolbar { - display: flex; - align-items: center; - margin: 20px 0; - - @include respond(md) { - display: none; - } - - .back-home { - background: var(--card-background); - border-radius: var(--tag-border-radius); - color: var(--card-text-color-tertiary); - margin-right: 30px; - display: inline-flex; - align-items: center; - font-size: 1.4rem; - text-transform: uppercase; - padding: 10px 20px 10px 15px; - - transition: box-shadow 0.3s ease; - - box-shadow: var(--shadow-l1); - - &:hover { - box-shadow: var(--shadow-l2); - } - - svg { - margin-right: 5px; - width: 20px; - height: 20px; - } - - span { - font-weight: 500; - white-space: nowrap; - } - } -} - .widget--toc { background-color: var(--card-background); border-radius: var(--card-border-radius); From 9d922272e4fcac7f28925b25eb9a50ef41c002b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Beta=C5=84ski?= Date: Sat, 19 Mar 2022 23:58:05 +0100 Subject: [PATCH 02/12] feat(i18n/pl): Add translation for Category widget (#563) --- i18n/pl.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/i18n/pl.yaml b/i18n/pl.yaml index f261f86..68c9bc8 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -50,6 +50,10 @@ widget: tagCloud: title: other: Tagi + + categoriesCloud: + title: + other: Kategorie search: title: From 2671f292fdb2cba345b86a5bc80032f3c0f03e2f Mon Sep 17 00:00:00 2001 From: zhixuan Date: Sun, 20 Mar 2022 08:00:08 +0900 Subject: [PATCH 03/12] fix(exampleSite): wrong `zh-cn` about page filename (#562) --- exampleSite/content/page/about/index.cn.md | 5 ----- exampleSite/content/page/about/index.zh-cn.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 exampleSite/content/page/about/index.cn.md create mode 100644 exampleSite/content/page/about/index.zh-cn.md diff --git a/exampleSite/content/page/about/index.cn.md b/exampleSite/content/page/about/index.cn.md deleted file mode 100644 index 060c006..0000000 --- a/exampleSite/content/page/about/index.cn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: 关于 ---- - -This is a test page for i18n support. \ No newline at end of file diff --git a/exampleSite/content/page/about/index.zh-cn.md b/exampleSite/content/page/about/index.zh-cn.md new file mode 100644 index 0000000..0284003 --- /dev/null +++ b/exampleSite/content/page/about/index.zh-cn.md @@ -0,0 +1,10 @@ +--- +title: 关于 +menu: + main: + weight: -90 + params: + icon: user +--- + +This is a test page for i18n support. \ No newline at end of file From da6a50ddb50d453b6d06397b31fb2909ed6d50a8 Mon Sep 17 00:00:00 2001 From: Konnyaku Date: Sun, 20 Mar 2022 07:05:12 +0800 Subject: [PATCH 04/12] feat(i18n): add Chinese(Hong Kong) translation (#560) --- exampleSite/config.yaml | 2 +- i18n/zh-hk.yaml | 73 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 i18n/zh-hk.yaml diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 545116d..1b860bf 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack googleAnalytics: # Theme i18n support -# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar +# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, zh-hk, es, de, nl, it, th, el, uk, ar DefaultContentLanguage: en # Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] diff --git a/i18n/zh-hk.yaml b/i18n/zh-hk.yaml new file mode 100644 index 0000000..d927bdc --- /dev/null +++ b/i18n/zh-hk.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: 切換選單 + +darkMode: + other: 深色模式 + +list: + page: + one: "第 {{ .Count }} 頁" + other: "第 {{ .Count }} 頁" + + section: + other: Section + + subsection: + one: Subsection + other: Subsections + +article: + back: + other: 返回 + + tableOfContents: + other: 目錄 + + relatedContents: + other: 相關內容 + + lastUpdatedOn: + other: 上次改過於 + + readingTime: + one: "需要 {{ .Count }} 分鐘閱讀" + other: "需要 {{ .Count }} 分鐘閱讀" + +notFound: + title: + other: Not Found + + subtitle: + other: 頁面不存在 + +widget: + archives: + title: + other: Archives + + more: + other: 更多 + + tagCloud: + title: + other: Tags + categoriesCloud: + title: + other: Categories + +search: + title: + other: 搜尋 + + placeholder: + other: Type 關鍵字... + + resultTitle: + other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + +footer: + builtWith: + other: Built with {{ .Generator }} + + designedBy: + other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計 From bf8868c8e78d74504f1d5f5da3b41b05792871cf Mon Sep 17 00:00:00 2001 From: Hugoo Date: Sun, 20 Mar 2022 00:06:27 +0100 Subject: [PATCH 05/12] feat(i18n/es): add translation for Category widget (#558) --- i18n/es.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/es.yaml b/i18n/es.yaml index 9e1d6e1..5f197da 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -51,6 +51,9 @@ widget: tagCloud: title: other: Etiquetas + categoriesCloud: + title: + other: Categorías search: title: From 1cfd39c627146d0088b8878800142fdd43fb5558 Mon Sep 17 00:00:00 2001 From: Hugoo Date: Sun, 20 Mar 2022 00:14:26 +0100 Subject: [PATCH 06/12] feat(i18n): add Catalan translation (#557) --- exampleSite/config.yaml | 2 +- i18n/ca.yaml | 73 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 i18n/ca.yaml diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 1b860bf..ea576c2 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -26,7 +26,7 @@ disqusShortname: hugo-theme-stack googleAnalytics: # Theme i18n support -# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, zh-hk, es, de, nl, it, th, el, uk, ar +# Available values: ar, ca, de, el, en, es, fr, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw DefaultContentLanguage: en # Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] diff --git a/i18n/ca.yaml b/i18n/ca.yaml new file mode 100644 index 0000000..33ad70e --- /dev/null +++ b/i18n/ca.yaml @@ -0,0 +1,73 @@ +toggleMenu: + other: Toggle Menu + +darkMode: + other: Mode fosc + +list: + page: + one: "{{ .Count }} pàgina" + other: "{{ .Count }} pàgines" + + section: + other: Secció + + subsection: + one: Subsecció + other: Subseccions + +article: + back: + other: Tornar + + tableOfContents: + other: Taula de contingut + + relatedContents: + other: Continguts relacionats + + lastUpdatedOn: + other: Última vegada actualitzat + + readingTime: + one: "{{ .Count }} minut a llegir" + other: "{{ .Count }} minuts a llegir" + +notFound: + title: + other: No Trobat + + subtitle: + other: Aquesta pàgina no existeix + +widget: + archives: + title: + other: Arxiu + + more: + other: Més + + tagCloud: + title: + other: Etiquetes + categoriesCloud: + title: + other: Categories + +search: + title: + other: Cerca + + placeholder: + other: Tecleja alguna cosa... + + resultTitle: + other: "#PAGES_COUNT pàgines en (#TIME_SECONDS segons)" + +footer: + builtWith: + other: Creat amb {{ .Generator }} + + designedBy: + other: Tema {{ .Theme }} dissenyat per {{ .DesignedBy }} From de952be116b1c52d4f830cd17759982e8f570adc Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 19 Mar 2022 23:16:58 +0000 Subject: [PATCH 07/12] fix(exampleSite): cn.md -> zh-cn.md --- .../content/post/chinese-test/{index.cn.md => index.zh-cn.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename exampleSite/content/post/chinese-test/{index.cn.md => index.zh-cn.md} (100%) diff --git a/exampleSite/content/post/chinese-test/index.cn.md b/exampleSite/content/post/chinese-test/index.zh-cn.md similarity index 100% rename from exampleSite/content/post/chinese-test/index.cn.md rename to exampleSite/content/post/chinese-test/index.zh-cn.md From 2726cf7549d4160017657ba64961431557f937a2 Mon Sep 17 00:00:00 2001 From: Farrel Franqois Date: Sun, 20 Mar 2022 06:38:00 +0700 Subject: [PATCH 08/12] feat(i18n/id): Add translation for Category Widget (#548) --- i18n/id.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/i18n/id.yaml b/i18n/id.yaml index 2af893a..deeb189 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -51,6 +51,10 @@ widget: title: other: Tag + categoriesCloud: + title: + other: Kategori + search: title: other: Cari From c5eee559c2b6577570302e4f6a063204aa9e13ee Mon Sep 17 00:00:00 2001 From: RADDAH <7273511+Raddah@users.noreply.github.com> Date: Sun, 20 Mar 2022 02:41:18 +0300 Subject: [PATCH 09/12] fix(i18n/ar): update Reading Time localization for Arabic language (#527) * update the localization based on Arabic syntax readingTime variable updated to match the exact syntax for Arabic language One variable in Arabic no need to add the count variable for 1 minute, there is a word to describe that specifically. Other variable localization updated to match Arabic grammar tenses. * remove unnecessary leading space Co-authored-by: Jimmy Cai --- i18n/ar.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/ar.yaml b/i18n/ar.yaml index dab3c74..8af7ff9 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -30,8 +30,8 @@ article: other: التعديل الاخير readingTime: - one: "قرائة {{ .Count }} دقيقة" - other: "قرائة {{ .Count }} دقائق" + one: "تُقرأ خلال دقيقة" + other: "تُقرأ خلال {{ .Count }} دقائق" notFound: title: From 8c04e8362c78dc348aeffdcb45a8fd47e252cdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E6=9E=ABGo?= Date: Sun, 20 Mar 2022 07:52:06 +0800 Subject: [PATCH 10/12] fix(vssue): Vue version compatibility (#546) --- layouts/partials/comments/provider/vssue.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/comments/provider/vssue.html b/layouts/partials/comments/provider/vssue.html index 0a9ea56..79ac381 100644 --- a/layouts/partials/comments/provider/vssue.html +++ b/layouts/partials/comments/provider/vssue.html @@ -3,7 +3,7 @@
- +