From 5dc4f21a4baf564ede85d8e702ef5b19c96657a3 Mon Sep 17 00:00:00 2001
From: Emile Bangma <ewjbangma@hotmail.com>
Date: Mon, 12 Feb 2024 16:58:00 +0000
Subject: [PATCH] feat(i18n): localize the min read string for the nl-NL locale (#850)

---
 quartz/components/Graph.tsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quartz/components/Graph.tsx b/quartz/components/Graph.tsx
index f728c5e..9fce9bd 100644
--- a/quartz/components/Graph.tsx
+++ b/quartz/components/Graph.tsx
@@ -2,7 +2,7 @@
 // @ts-ignore
 import script from "./scripts/graph.inline"
 import style from "./styles/graph.scss"
-import { i18n } from "../i18n/i18next"
+import { i18n } from "../i18n"
 import { classNames } from "../util/lang"
 
 export interface D3Config {
@@ -59,7 +59,7 @@
     const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph }
     return (
       <div class={classNames(displayClass, "graph")}>
-        <h3>{i18n(cfg.locale, "graph.graphView")}</h3>
+        <h3>{i18n(cfg.locale).components.graph.title}</h3>
         <div class="graph-outer">
           <div id="graph-container" data-cfg={JSON.stringify(localGraph)}></div>
           <svg

--
Gitblit v1.10.0