From be63d6c4f8545a878f7afb373fd4f4c5f1b4eafd Mon Sep 17 00:00:00 2001 From: Seongjun Jang <41983244+junnei@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:49:34 +0900 Subject: [PATCH] Update translation --- exampleSite/hugo.toml | 4 +++- layouts/partials/components/breadcrumb.html | 4 ++-- layouts/partials/page-header.html | 2 +- layouts/partials/widgets/tags.html | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 65a856b..304598c 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -15,7 +15,9 @@ summaryLength = 10 # see https://gohugo.io/content-management/excerpts/ disableLanguages = [ ] # example: ["fr"] for disable french language. see https://gohugo.io/content-management/multilingual/ hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage - +# default language +defaultContentLanguage = 'en' +defaultContentLanguageInSubdir = false ########################### Services ############################# [services] diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index 53f302e..b21939c 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -16,7 +16,7 @@ - {{ .Title }} + {{ i18n (printf "%s" (lower .Title)) | default .Title }} / @@ -24,7 +24,7 @@ {{ end }}
  • - {{ $context.Title }} + {{ i18n (printf "%s" (lower $context.Title)) | default $context.Title }}
  • diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 1277053..14ea171 100755 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,7 +2,7 @@
    -

    {{ .Title | title }}

    +

    {{ i18n (printf "%s" (lower .Title)) | default .Title | title }}

    {{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }}
    diff --git a/layouts/partials/widgets/tags.html b/layouts/partials/widgets/tags.html index aa0db76..48126ac 100755 --- a/layouts/partials/widgets/tags.html +++ b/layouts/partials/widgets/tags.html @@ -2,7 +2,7 @@ {{ if isset site.Taxonomies "tags" }} {{ if not (eq (len site.Taxonomies.tags) 0) }}
    -
    Tags
    +
    {{ i18n "tags" }}