update i18n translation

This commit is contained in:
Somrat 2024-05-12 14:07:39 +06:00
parent 4699c6465e
commit 1fcca8dec5
8 changed files with 25 additions and 52 deletions

View File

@ -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

View File

@ -47,7 +47,7 @@
{{ $tags:= .Params.tags }}
{{ if $tags }}
<div class="lg:col-5 mb-10 flex items-center lg:mb-0">
<h5 class="mr-3">{{ i18n "tags" }} :</h5>
<h5 class="mr-3">{{ T "tags" }} :</h5>
<ul>
{{ range $i,$p:= $tags }}
<li class="inline-block">
@ -62,7 +62,7 @@
</div>
{{ end }}
<div class="lg:col-4 flex items-center">
{{ 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) }}
</div>
</div>
<!-- comments -->
@ -79,7 +79,7 @@
{{ $related = $related | shuffle | first 3 }}
{{ with $related }}
<div class="section pb-0">
<h2 class="h3 mb-12">{{ i18n "related_posts" }}</h2>
<h2 class="h3 mb-12">{{ T "related_posts" }}</h2>
<div class="row">
{{ range . }}
<div class="lg:col-4 md:col-6 mb-14">

View File

@ -32,6 +32,6 @@
{{ end }}
<p class="mb-6">{{ .Summary }}</p>
<a class="btn btn-outline-primary btn-sm" href="{{ .RelPermalink }}">
{{ i18n "read_more" }}
{{ T "read_more" }}
</a>
</div>

View File

@ -6,7 +6,7 @@
<ul class="{{ $class }} inline-flex space-x-1 capitalize">
<li>
<a class="text-primary dark:text-darkmode-primary" href="{{ $base }}">
{{ i18n "home" | default "Home" }}
{{ T "home" | default "Home" }}
</a>
<span class="inlin-block mr-1">/</span>
</li>
@ -16,7 +16,7 @@
<a
class="text-primary dark:text-darkmode-primary"
href="{{ .RelPermalink }}">
{{ i18n (printf "%s" (lower .Title)) | default .Title }}
{{ T (printf "%s" (lower .Title)) | default .Title }}
</a>
<span class="inlin-block mr-1">/</span>
</li>
@ -24,7 +24,7 @@
{{ end }}
<li>
<span class="text-primary dark:text-darkmode-primary">
{{ i18n (printf "%s" (lower $context.Title)) | default $context.Title }}
{{ T (printf "%s" (lower $context.Title)) | default $context.Title }}
</span>
</li>
</ul>

View File

@ -2,7 +2,7 @@
<div class="container text-center">
<div
class="from-body to-theme-light dark:from-darkmode-body dark:to-darkmode-theme-light rounded-2xl bg-gradient-to-b px-8 py-14">
<h1>{{ i18n (printf "%s" (lower .Title)) | default .Title | title }}</h1>
<h1>{{ T (printf "%s" (lower .Title)) | default .Title | title }}</h1>
{{ partial "components/breadcrumb" (dict "Context" . "Class" "mt-6") }}
</div>
</div>

View File

@ -2,7 +2,7 @@
{{ if isset site.Taxonomies "categories" }}
{{ if not (eq (len site.Taxonomies.categories) 0) }}
<div class="mb-8">
<h5 class="mb-6">{{ i18n "categories" }}</h5>
<h5 class="mb-6">{{ T "categories" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-8">
<ul class="space-y-4">
{{ range $name, $items := site.Taxonomies.categories }}

View File

@ -2,7 +2,7 @@
{{ if isset site.Taxonomies "tags" }}
{{ if not (eq (len site.Taxonomies.tags) 0) }}
<div class="mb-8">
<h5 class="mb-6">{{ i18n "tags" }}</h5>
<h5 class="mb-6">{{ T "tags" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-6">
<ul>
{{ range $name, $items := site.Taxonomies.tags }}

View File

@ -1,7 +1,7 @@
{
"name": "hugoplate",
"description": "hugo tailwindcss boilerplate",
"version": "1.14.0",
"version": "1.15.0",
"license": "MIT",
"author": "zeon.studio",
"scripts": {