diff --git a/lib/lang/en-US.js b/lib/lang/en-US.js
index 594ddfc0..98c102bd 100644
--- a/lib/lang/en-US.js
+++ b/lib/lang/en-US.js
@@ -41,6 +41,7 @@ export default {
ARTICLE_DETAIL: 'Article Details',
PASSWORD_ERROR: 'Password Error!',
ARTICLE_LOCK_TIPS: 'Please Enter the password:',
+ NO_RESULTS_FOUND: 'No results found.',
SUBMIT: 'Submit',
POST_TIME: 'Post on',
LAST_EDITED_TIME: 'Last edited',
@@ -52,8 +53,8 @@ export default {
ANNOUNCEMENT: 'Announcement',
START_READING: 'Start Reading',
MINUTE: 'min',
- WORD_COUNT: 'W.C.'
-
+ WORD_COUNT: 'Words',
+ READ_TIME: 'Read Time'
},
PAGINATION: {
PREV: 'Prev',
diff --git a/lib/lang/zh-CN.js b/lib/lang/zh-CN.js
index e29af3d5..acd87919 100644
--- a/lib/lang/zh-CN.js
+++ b/lib/lang/zh-CN.js
@@ -40,6 +40,7 @@ export default {
VIEWS: '次查看',
COPYRIGHT_NOTICE: '本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。',
RESULT_OF_SEARCH: '篇搜索到的结果',
+ NO_RESULTS_FOUND: '没有找到文章',
ARTICLE_DETAIL: '文章详情',
PASSWORD_ERROR: '密码错误!',
ARTICLE_LOCK_TIPS: '文章已上锁,请输入访问密码',
@@ -54,7 +55,8 @@ export default {
ANNOUNCEMENT: '公告',
START_READING: '开始阅读',
MINUTE: '分钟',
- WORD_COUNT: '字数'
+ WORD_COUNT: '字数',
+ READ_TIME: '阅读时长'
},
PAGINATION: {
PREV: '上页',
diff --git a/themes/fukasawa/components/BlogListEmpty.js b/themes/fukasawa/components/BlogListEmpty.js
index 41b42e73..59c5c892 100644
--- a/themes/fukasawa/components/BlogListEmpty.js
+++ b/themes/fukasawa/components/BlogListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const BlogListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default BlogListEmpty
diff --git a/themes/gitbook/components/NavPostListEmpty.js b/themes/gitbook/components/NavPostListEmpty.js
index 207599db..54f2f179 100644
--- a/themes/gitbook/components/NavPostListEmpty.js
+++ b/themes/gitbook/components/NavPostListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const NavPostListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default NavPostListEmpty
diff --git a/themes/medium/components/BlogPostListEmpty.js b/themes/medium/components/BlogPostListEmpty.js
index 86977fd0..a26cf292 100644
--- a/themes/medium/components/BlogPostListEmpty.js
+++ b/themes/medium/components/BlogPostListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const BlogPostListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default BlogPostListEmpty
diff --git a/themes/nav/components/BlogPostListEmpty.js b/themes/nav/components/BlogPostListEmpty.js
index 86977fd0..a26cf292 100755
--- a/themes/nav/components/BlogPostListEmpty.js
+++ b/themes/nav/components/BlogPostListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const BlogPostListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default BlogPostListEmpty
diff --git a/themes/nav/components/NavPostListEmpty.js b/themes/nav/components/NavPostListEmpty.js
index 207599db..54f2f179 100755
--- a/themes/nav/components/NavPostListEmpty.js
+++ b/themes/nav/components/NavPostListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const NavPostListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default NavPostListEmpty
diff --git a/themes/next/components/BlogPostListEmpty.js b/themes/next/components/BlogPostListEmpty.js
index b1d87253..ae09e90d 100644
--- a/themes/next/components/BlogPostListEmpty.js
+++ b/themes/next/components/BlogPostListEmpty.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
/**
* 空白博客 列表
@@ -5,8 +6,9 @@
* @constructor
*/
const BlogPostListEmpty = ({ currentSearch }) => {
+ const { locale } = useGlobal()
return
-
没有找到文章 {(currentSearch &&
{currentSearch}
)}
+
{locale.COMMON.NO_RESULTS_FOUND} {(currentSearch &&
{currentSearch}
)}
}
export default BlogPostListEmpty
diff --git a/themes/next/components/WordCount.js b/themes/next/components/WordCount.js
index 2062e69a..ccf146d4 100644
--- a/themes/next/components/WordCount.js
+++ b/themes/next/components/WordCount.js
@@ -1,3 +1,4 @@
+import { useGlobal } from '@/lib/global'
import { useEffect } from 'react'
/**
@@ -9,8 +10,12 @@ export default function WordCount() {
countWords()
})
+ const { locale } = useGlobal()
+
return
- 本文字数 0 | 阅读时长 ≈ 0 分钟
+
+ {locale.COMMON.WORD_COUNT}≈
+ 0 | {locale.COMMON.READ_TIME} ≈ 0 {locale.COMMON.MINUTE}
}