diff --git a/exampleSite/i18n/en.yaml b/exampleSite/i18n/en.yaml index b0230eb..4e6722f 100755 --- a/exampleSite/i18n/en.yaml +++ b/exampleSite/i18n/en.yaml @@ -1,41 +1,14 @@ -- id: home - translation: Home - -- id: read_more - translation: Read More - -- id: send - translation: Send - -- id: related_posts - translation: Related Posts - -- id: categories - translation: Categories - -- id: tags - translation: Tags - -- id: toc - translation: Table of Contents - -- id: share - translation: Share - -- id: search_input_placeholder - translation: Search Post ... - -- id: search_no_results - translation: No results for - -- id: search_initial_message - translation: Type something to search.. - -- id: search_navigate - translation: to navigate - -- id: search_select - translation: to select - -- id: search_close - translation: to close +home: Home +read_more: Read More +send: Send +related_posts: Related Posts +categories: Categories +tags: Tags +toc: Table of Contents +share: Share +search_input_placeholder: Search Post... +search_no_results: No results for +search_initial_message: Type something to search.. +search_navigate: to navigate +search_select: to select +search_close: to close diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 4cabd91..87dcbfc 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -47,7 +47,7 @@ {{ $tags:= .Params.tags }} {{ if $tags }}
-
{{ i18n "tags" }} :
+
{{ T "tags" }} :
{{ end }}
- {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (i18n "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }} + {{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (T "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
@@ -79,7 +79,7 @@ {{ $related = $related | shuffle | first 3 }} {{ with $related }}
-

{{ i18n "related_posts" }}

+

{{ T "related_posts" }}

{{ range . }}
diff --git a/layouts/partials/components/blog-card.html b/layouts/partials/components/blog-card.html index 72b864c..d0d5266 100644 --- a/layouts/partials/components/blog-card.html +++ b/layouts/partials/components/blog-card.html @@ -32,6 +32,6 @@ {{ end }}

{{ .Summary }}

- {{ i18n "read_more" }} + {{ T "read_more" }}
diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index b21939c..eba367c 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -6,7 +6,7 @@ diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html index 860f053..c0b2baa 100755 --- a/layouts/partials/page-header.html +++ b/layouts/partials/page-header.html @@ -2,7 +2,7 @@
-

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

+

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

{{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }}
diff --git a/layouts/partials/widgets/categories.html b/layouts/partials/widgets/categories.html index 2acd197..1a0792b 100755 --- a/layouts/partials/widgets/categories.html +++ b/layouts/partials/widgets/categories.html @@ -2,7 +2,7 @@ {{ if isset site.Taxonomies "categories" }} {{ if not (eq (len site.Taxonomies.categories) 0) }}
-
{{ i18n "categories" }}
+
{{ T "categories" }}
    {{ range $name, $items := site.Taxonomies.categories }} diff --git a/layouts/partials/widgets/tags.html b/layouts/partials/widgets/tags.html index 48126ac..605b20c 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) }}
    -
    {{ i18n "tags" }}
    +
    {{ T "tags" }}
      {{ range $name, $items := site.Taxonomies.tags }} diff --git a/package.json b/package.json index 5450bde..373c451 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.14.0", + "version": "1.15.0", "license": "MIT", "author": "zeon.studio", "scripts": {