-
目录
+
{locale.COMMON.TABLE_OF_CONTENTS}
diff --git a/themes/matery/components/Catalog.js b/themes/matery/components/Catalog.js
index f58aa9fb..a86326e3 100644
--- a/themes/matery/components/Catalog.js
+++ b/themes/matery/components/Catalog.js
@@ -2,6 +2,7 @@ import React, { useRef } from 'react'
import throttle from 'lodash.throttle'
import { uuidToId } from 'notion-utils'
import Progress from './Progress'
+import { useGlobal } from '@/lib/global'
/**
* 目录导航组件
@@ -10,6 +11,7 @@ import Progress from './Progress'
* @constructor
*/
const Catalog = ({ toc }) => {
+ const { locale } = useGlobal()
// 监听滚动事件
React.useEffect(() => {
window.addEventListener('scroll', actionSectionScrollSpy)
@@ -59,7 +61,7 @@ const Catalog = ({ toc }) => {
}
return
-
目录
+
{locale.COMMON.TABLE_OF_CONTENTS}
From 0a6444a383f595cf8fb526d29ac89e879b715652 Mon Sep 17 00:00:00 2001
From: "tangly1024.com"
Date: Fri, 20 Jan 2023 13:58:48 +0800
Subject: [PATCH 18/18] 3.8.2
---
.env.local | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.env.local b/.env.local
index 98cc6563..a8cf9114 100644
--- a/.env.local
+++ b/.env.local
@@ -1,2 +1,2 @@
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables
-NEXT_PUBLIC_VERSION=3.8.1
+NEXT_PUBLIC_VERSION=3.8.2
diff --git a/package.json b/package.json
index 94b60984..4dca8b5b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "notion-next",
- "version": "3.8.1",
+ "version": "3.8.2",
"homepage": "https://github.com/tangly1024/NotionNext.git",
"license": "MIT",
"repository": {