From e42d01898a46ff0a74fa548d38ef258d6ea1f12f Mon Sep 17 00:00:00 2001 From: Jinuk Im Date: Mon, 16 Oct 2023 21:30:31 +0900 Subject: [PATCH] fix: add missing translations (#142) * fix: add missing translation in blog list * fix: add translatable variables * Update en.yaml --------- Co-authored-by: Xin --- i18n/en.yaml | 12 +++++++----- layouts/blog/list.html | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index d4d7d62..2649f6e 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,7 +1,9 @@ -onThisPage: "On this page" +backToTop: "Scroll to top" +changeLanguage: "Change language" +changeTheme: "Change theme" +copyright: "© 2023 Hextra Project." editThisPage: "Edit this page on GitHub →" lastUpdated: "Last updated on" - -backToTop: "Scroll to top" - -copyright: "© 2023 Hextra Project." +onThisPage: "On this page" +readMore: "Read more →" +searchPlaceholder: "Search..." diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 691c97d..a8026e5 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -1,4 +1,5 @@ {{ define "main" }} +{{- $readMore := (T "readMore") | default "Read more →" -}}
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}