Skip to content

Commit

Permalink
chore: 用户友好的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Feb 23, 2024
1 parent 49a757f commit 491a374
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"AI写作": "AI writing",
"Paper2AI": "Paper2AI",
"点击AI写作就是正常的对话交流,点击寻找文献会根据输入的主题词去寻找对应论文": "Click AI Write for normal conversation, click Paper2AI to find corresponding papers based on the input topic",
"选择论文来源": "Select the source of the paper",
"选择AI模型": "Select AI model",
"生成轮数": "Generation Rounds",
"时间范围": "Range of literature release dates, from this time to this year",
"更新文中的上标,使得数字顺序排列": "Update the superscript in the text to make the numbers in order",
"+ Add Paper": "+ Add Paper",
"Buy VIP TO UNLOCK Cloud Sync and Edit Mutiple Papers Simultaneously": "Buy VIP TO UNLOCK Cloud Sync and Edit Mutiple Papers Simultaneously",
"Paper Management": "Paper Management",
Expand Down
3 changes: 3 additions & 0 deletions app/i18n/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
"AI写作": "AI写作",
"Paper2AI": "寻找文献",
"点击AI写作就是正常的对话交流,点击寻找文献会根据输入的主题词去寻找对应论文": "点击AI写作就是正常的对话交流,点击寻找文献会根据输入的主题词去寻找对应论文",
"选择论文来源": "选择论文来源",
"选择AI模型": "选择AI模型",
"生成轮数": "生成轮数",
"时间范围": "文献发布日期范围,从这个时间到今年",
"更新文中的上标,使得数字顺序排列": "更新文中的上标,使得数字顺序排列",
"+ Add Paper": "+ 添加新论文(会直接替换编辑器里的内容)",
"Buy VIP TO UNLOCK Cloud Sync and Edit Mutiple Papers Simultaneously": "购买VIP解锁云同步和同时编辑多篇论文",
"Paper Management": "论文管理",
Expand Down
3 changes: 3 additions & 0 deletions components/QuillEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ const QEditor = ({ lng }) => {
</button>
{/* 论文网站 */}
<select
title={t("选择论文来源")}
value={selectedSource}
onChange={(e) => setSelectedSource(e.target.value)}
className=" border border-gray-300 bg-white py-2 px-3 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
Expand All @@ -509,6 +510,7 @@ const QEditor = ({ lng }) => {
</select>
{/* AI模型 */}
<select
title={t("选择AI模型")}
value={selectedModel}
onChange={(e) => setSelectedModel(e.target.value)}
className=" border border-gray-300 bg-white py-2 px-3 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500 "
Expand Down Expand Up @@ -536,6 +538,7 @@ const QEditor = ({ lng }) => {
<button
onClick={() => formatTextInEditor(quill)} // 假设 updateIndex 是处理更新操作的函数
className="bg-gray-300 hover:bg-gray-400 text-black font-bold py-2 px-4 rounded"
title={t("更新文中的上标,使得数字顺序排列")}
>
{t("更新索引")}
</button>
Expand Down

0 comments on commit 491a374

Please sign in to comment.