聊天记录导出格式为image时预览聊天信息项使用设置的语言 chat information items using the language in the settings when exporting chat records in image format

This commit is contained in:
zhuge 2023-06-19 16:03:46 +08:00
parent 89717c9b15
commit c6696313bf
15 changed files with 88 additions and 4 deletions

View File

@ -449,16 +449,16 @@ export function ImagePreviewer(props: {
</div>
<div>
<div className={styles["chat-info-item"]}>
Model: {mask.modelConfig.model}
{Locale.Exporter.Model}: {mask.modelConfig.model}
</div>
<div className={styles["chat-info-item"]}>
Messages: {props.messages.length}
{Locale.Exporter.Messages}: {props.messages.length}
</div>
<div className={styles["chat-info-item"]}>
Topic: {session.topic}
{Locale.Exporter.Topic}: {session.topic}
</div>
<div className={styles["chat-info-item"]}>
Time:{" "}
{Locale.Exporter.Time}:{" "}
{new Date(
props.messages.at(-1)?.date ?? Date.now(),
).toLocaleString()}

View File

@ -281,6 +281,12 @@ const cn = {
Create: "新建",
Edit: "编辑",
},
Exporter: {
Model: "模型",
Messages: "消息",
Topic: "主题",
Time: "时间",
},
};
type DeepPartial<T> = T extends object

View File

@ -231,6 +231,12 @@ const cs: PartialLocaleType = {
Create: "Vytvořit",
Edit: "Upravit",
},
Exporter: {
Model: "Model",
Messages: "Zprávy",
Topic: "Téma",
Time: "Čas",
},
};
export default cs;

View File

@ -236,6 +236,12 @@ const de: PartialLocaleType = {
Create: "Create",
Edit: "Edit",
},
Exporter: {
Model: "Modell",
Messages: "Nachrichten",
Topic: "Thema",
Time: "Zeit",
},
};
export default de;

View File

@ -285,6 +285,12 @@ const en: LocaleType = {
Create: "Create",
Edit: "Edit",
},
Exporter: {
Model: "Model",
Messages: "Messages",
Topic: "Topic",
Time: "Time",
},
};
export default en;

View File

@ -233,6 +233,12 @@ const es: PartialLocaleType = {
Create: "Create",
Edit: "Edit",
},
Exporter: {
Model: "Modelo",
Messages: "Mensajes",
Topic: "Tema",
Time: "Time",
},
};
export default es;

View File

@ -237,6 +237,12 @@ const fr: PartialLocaleType = {
Create: "Créer",
Edit: "Éditer",
},
Exporter: {
Model: "Modèle",
Messages: "Messages",
Topic: "Sujet",
Time: "Temps",
},
};
export default fr;

View File

@ -234,6 +234,12 @@ const it: PartialLocaleType = {
Create: "Create",
Edit: "Edit",
},
Exporter: {
Model: "Modello",
Messages: "Messaggi",
Topic: "Argomento",
Time: "Tempo",
},
};
export default it;

View File

@ -241,6 +241,12 @@ const jp: PartialLocaleType = {
Create: "新規",
Edit: "編集",
},
Exporter: {
Model: "モデル",
Messages: "メッセージ",
Topic: "トピック",
Time: "時間",
},
};
export default jp;

View File

@ -229,6 +229,12 @@ const ko: PartialLocaleType = {
Create: "생성",
Edit: "편집",
},
Exporter: {
Model: "모델",
Messages: "메시지",
Topic: "주제",
Time: "시간",
},
};
export default ko;

View File

@ -157,6 +157,12 @@ const no: PartialLocaleType = {
Edit: "Kontekstuelle -og minneinstrukser",
Add: "Legg til",
},
Exporter: {
Model: "Model",
Messages: "Meldingar",
Topic: "Emne",
Time: "Tid",
},
};
export default no;

View File

@ -237,6 +237,12 @@ const ru: PartialLocaleType = {
Create: "Создать",
Edit: "Редактировать",
},
Exporter: {
Model: "Модель",
Messages: "Сообщения",
Topic: "Тема",
Time: "Время",
},
};
export default ru;

View File

@ -234,6 +234,12 @@ const tr: PartialLocaleType = {
Create: "Create",
Edit: "Edit",
},
Exporter: {
Model: "Model",
Messages: "Mesajlar",
Topic: "Konu",
Time: "Zaman",
},
};
export default tr;

View File

@ -223,6 +223,12 @@ const tw: PartialLocaleType = {
Create: "新建",
Edit: "编辑",
},
Exporter: {
Model: "模型",
Messages: "消息",
Topic: "主題",
Time: "時間",
},
};
export default tw;

View File

@ -229,6 +229,12 @@ const vi: PartialLocaleType = {
Create: "Tạo",
Edit: "Chỉnh sửa",
},
Exporter: {
Model: "Mô hình",
Messages: "Thông điệp",
Topic: "Chủ đề",
Time: "Thời gian",
},
};
export default vi;