Skip to content

Let's use AI to Earn!

chore: i18

gaoSir6271bae37386
diff --git a/@types/resources.d.ts b/@types/resources.d.ts
index 20a40b22..c304e813 100644
--- a/@types/resources.d.ts
+++ b/@types/resources.d.ts
@@ -1914,8 +1914,9 @@ interface Resources {
"board": "Board",
"boardPlaceholder": "请选择Board",
"description": "描述",
- "descriptionPlaceholder": "开始写..."
+ "descriptionPlaceholder": "开始写"
},
+ "writingAssistant": "写作助手",
"upload": {
"finishingUp": "正在完成...",
"uploadImageOrVideo": "上传图片或视频",
diff --git a/src/app/i18n/locales/en/publish.json b/src/app/i18n/locales/en/publish.json
index c13af0c2..19a1ee61 100644
--- a/src/app/i18n/locales/en/publish.json
+++ b/src/app/i18n/locales/en/publish.json
@@ -49,6 +49,7 @@
"boardPlaceholder": "Select Board",
"descriptionPlaceholder": "Start writing"
},
+ "writingAssistant": "Easiest Essay Writer",
"upload": {
"finishingUp": "Finishing up...",
"uploadImageOrVideo": "Upload image or video",
diff --git a/src/app/i18n/locales/zh-CN/publish.json b/src/app/i18n/locales/zh-CN/publish.json
index 65644380..45b3f9b3 100644
--- a/src/app/i18n/locales/zh-CN/publish.json
+++ b/src/app/i18n/locales/zh-CN/publish.json
@@ -50,6 +50,7 @@
"description": "描述",
"descriptionPlaceholder": "开始写"
},
+ "writingAssistant": "写作助手",
"upload": {
"finishingUp": "正在完成...",
"uploadImageOrVideo": "上传图片或视频",
diff --git a/src/components/PublishDialog/compoents/PublishDialogAi.tsx b/src/components/PublishDialog/compoents/PublishDialogAi.tsx
index 364044bb..d35d5f65 100644
--- a/src/components/PublishDialog/compoents/PublishDialogAi.tsx
+++ b/src/components/PublishDialog/compoents/PublishDialogAi.tsx
@@ -1,6 +1,7 @@
import { ForwardedRef, forwardRef, memo } from "react";
import styles from "../publishDialog.module.scss";
import Chat from "@/components/Chat";
+import { useTransClient } from "@/app/i18n/client";
export interface IPublishDialogAiRef {}
@@ -10,9 +11,11 @@ export interface IPublishDialogAiProps {}
const PublishDialogAi = memo(
forwardRef(
({}: IPublishDialogAiProps, ref: ForwardedRef<IPublishDialogAiRef>) => {
+ const { t } = useTransClient("publish");
+
return (
<div className={styles.publishDialogAi}>
- <h1>写作助手</h1>
+ <h1>{t("writingAssistant")}</h1>
<div className="publishDialogAi-wrapper">
<Chat />
</div>