From dff4b063135297aaa2f0605fd3267a874baaa90d Mon Sep 17 00:00:00 2001
From: Mats Fangohr <83273529+MatsFangohr@users.noreply.github.com>
Date: Sun, 04 Feb 2024 14:48:31 +0000
Subject: [PATCH] fix(i18n): backlinks naming in mapping (#800)

---
 quartz/components/RecentNotes.tsx |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/quartz/components/RecentNotes.tsx b/quartz/components/RecentNotes.tsx
index 81b354d..240ef98 100644
--- a/quartz/components/RecentNotes.tsx
+++ b/quartz/components/RecentNotes.tsx
@@ -5,6 +5,7 @@
 import style from "./styles/recentNotes.scss"
 import { Date, getDate } from "./Date"
 import { GlobalConfiguration } from "../cfg"
+import { i18n } from "../i18n/i18next"
 import { classNames } from "../util/lang"
 
 interface Options {
@@ -70,7 +71,13 @@
         </ul>
         {opts.linkToMore && remaining > 0 && (
           <p>
-            <a href={resolveRelative(fileData.slug!, opts.linkToMore)}>See {remaining} more →</a>
+            <a href={resolveRelative(fileData.slug!, opts.linkToMore)}>
+              {" "}
+              {i18n(cfg.locale, "recentNotes.seeRemainingMore", {
+                remaining: remaining.toString(),
+              })}{" "}
+              →
+            </a>
           </p>
         )}
       </div>

--
Gitblit v1.10.0