diff --git a/components/AISummary.js b/components/AISummary.js
index 055b4fc5..058d4214 100644
--- a/components/AISummary.js
+++ b/components/AISummary.js
@@ -1,8 +1,10 @@
import styles from './AISummary.module.css'
import { useEffect, useState } from 'react'
+import { useGlobal } from '@/lib/global'
const AISummary = ({ aiSummary }) => {
- const [summary, setSummary] = useState('生成中...')
+ const { locale } = useGlobal()
+ const [summary, setSummary] = useState(locale.AI_SUMMARY.GENERATING + '...')
useEffect(() => {
showAiSummaryAnimation(aiSummary, setSummary)
@@ -24,7 +26,7 @@ const AISummary = ({ aiSummary }) => {
/>
-
AI智能摘要
+ {locale.AI_SUMMARY.NAME}
GPT
diff --git a/lib/lang/en-US.js b/lib/lang/en-US.js
index 17be1575..af5ec370 100644
--- a/lib/lang/en-US.js
+++ b/lib/lang/en-US.js
@@ -87,5 +87,9 @@ export default {
SUBSCRIBE: 'Subscribe',
MSG: 'Get the latest news and articles to your inbox every month.',
EMAIL: 'Email'
+ },
+ AI_SUMMARY: {
+ NAME: 'AI intelligent summary',
+ GENERATING: 'Generating'
}
}
diff --git a/lib/lang/fr-FR.js b/lib/lang/fr-FR.js
index 2bc40057..efc775c4 100644
--- a/lib/lang/fr-FR.js
+++ b/lib/lang/fr-FR.js
@@ -21,7 +21,7 @@ export default {
URL_COPIED: "L'URL est copé!",
TABLE_OF_CONTENTS: 'Sommaire',
RELATE_POSTS: 'Article similaire',
- COPYRIGHT: 'Droit d\'auteur',
+ COPYRIGHT: "Droit d'auteur",
AUTHOR: 'Auteur',
URL: 'Link',
ANALYTICS: 'Analytique',
@@ -29,7 +29,8 @@ export default {
ARTICLE: 'Article(s)',
VISITORS: 'Visiteurs',
VIEWS: 'Views',
- COPYRIGHT_NOTICE: 'Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International (CC BY-NC-SA 4.0)',
+ COPYRIGHT_NOTICE:
+ 'Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International (CC BY-NC-SA 4.0)',
RESULT_OF_SEARCH: 'Résultats',
ARTICLE_DETAIL: 'Plus de détails',
PASSWORD_ERROR: 'Mot de passe est incorrect!',
@@ -50,5 +51,9 @@ export default {
POST: {
BACK: 'Page precedente',
TOP: 'Haut'
+ },
+ AI_SUMMARY: {
+ NAME: "Résumé intelligent par l'IA",
+ GENERATING: 'Génération en cours'
}
}
diff --git a/lib/lang/ja-JP.js b/lib/lang/ja-JP.js
index 628b28b3..cdb57e23 100644
--- a/lib/lang/ja-JP.js
+++ b/lib/lang/ja-JP.js
@@ -58,5 +58,9 @@ export default {
POST: {
BACK: '前のページに戻る',
TOP: '上に戻る'
+ },
+ AI_SUMMARY: {
+ NAME: 'AIインテリジェントサマリー',
+ GENERATING: '生成中'
}
}
diff --git a/lib/lang/tr-TR.js b/lib/lang/tr-TR.js
index 5be7a520..69bcbf6a 100644
--- a/lib/lang/tr-TR.js
+++ b/lib/lang/tr-TR.js
@@ -53,5 +53,9 @@ export default {
POST: {
BACK: 'Geri',
TOP: 'Yukarı'
+ },
+ AI_SUMMARY: {
+ NAME: 'Yapay Zeka Akıllı Özet',
+ GENERATING: 'Oluşturuluyor'
}
}
diff --git a/lib/lang/zh-CN.js b/lib/lang/zh-CN.js
index f17e0f0f..82477e9f 100644
--- a/lib/lang/zh-CN.js
+++ b/lib/lang/zh-CN.js
@@ -87,5 +87,9 @@ export default {
SUBSCRIBE: '邮件订阅',
MSG: '订阅以获取每月更新的新闻和文章,直接发送至您的邮箱。',
EMAIL: '邮箱'
+ },
+ AI_SUMMARY: {
+ NAME: 'AI智能摘要',
+ GENERATING: '生成中'
}
}
diff --git a/lib/lang/zh-HK.js b/lib/lang/zh-HK.js
index e4de0f4e..e72c7a8c 100644
--- a/lib/lang/zh-HK.js
+++ b/lib/lang/zh-HK.js
@@ -52,5 +52,9 @@ export default {
POST: {
BACK: '返回',
TOP: '回到頂端'
+ },
+ AI_SUMMARY: {
+ NAME: 'AI智能摘要',
+ GENERATING: '生成中'
}
}
diff --git a/lib/lang/zh-TW.js b/lib/lang/zh-TW.js
index 02c3ed2f..550aee95 100644
--- a/lib/lang/zh-TW.js
+++ b/lib/lang/zh-TW.js
@@ -52,5 +52,9 @@ export default {
POST: {
BACK: '返回',
TOP: '回到頂端'
+ },
+ AI_SUMMARY: {
+ NAME: 'AI智能摘要',
+ GENERATING: '生成中'
}
}