-
目录
+
{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}