mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(AI摘要功能支持多语言):
(cherry picked from commit fcf0ca4ebb241321b3210a0465f9913f7e48bb5b)
This commit is contained in:
@@ -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 }) => {
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
<div className={styles['ai-title']}>AI智能摘要</div>
|
||||
<div className={styles['ai-title']}>{locale.AI_SUMMARY.NAME}</div>
|
||||
<div className={styles['ai-tag']}>GPT</div>
|
||||
</div>
|
||||
<div className={styles['ai-content']}>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,5 +58,9 @@ export default {
|
||||
POST: {
|
||||
BACK: '前のページに戻る',
|
||||
TOP: '上に戻る'
|
||||
},
|
||||
AI_SUMMARY: {
|
||||
NAME: 'AIインテリジェントサマリー',
|
||||
GENERATING: '生成中'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,5 +53,9 @@ export default {
|
||||
POST: {
|
||||
BACK: 'Geri',
|
||||
TOP: 'Yukarı'
|
||||
},
|
||||
AI_SUMMARY: {
|
||||
NAME: 'Yapay Zeka Akıllı Özet',
|
||||
GENERATING: 'Oluşturuluyor'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,5 +87,9 @@ export default {
|
||||
SUBSCRIBE: '邮件订阅',
|
||||
MSG: '订阅以获取每月更新的新闻和文章,直接发送至您的邮箱。',
|
||||
EMAIL: '邮箱'
|
||||
},
|
||||
AI_SUMMARY: {
|
||||
NAME: 'AI智能摘要',
|
||||
GENERATING: '生成中'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +52,9 @@ export default {
|
||||
POST: {
|
||||
BACK: '返回',
|
||||
TOP: '回到頂端'
|
||||
},
|
||||
AI_SUMMARY: {
|
||||
NAME: 'AI智能摘要',
|
||||
GENERATING: '生成中'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,5 +52,9 @@ export default {
|
||||
POST: {
|
||||
BACK: '返回',
|
||||
TOP: '回到頂端'
|
||||
},
|
||||
AI_SUMMARY: {
|
||||
NAME: 'AI智能摘要',
|
||||
GENERATING: '生成中'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user