diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index c29e54be5..ddd9216a7 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -559,7 +559,7 @@ export function Chat(props: {
);
};
- const exportToImage = (i: number) => {
+ const exportAsImage = (i: number) => {
if (divRefs.current[i]) {
//get the color style from a div by classname 'markdown-body'
const divElement = document.querySelector(
@@ -800,9 +800,9 @@ export function Chat(props: {
exportToImage(i)}
+ onClick={() => exportAsImage(i)}
>
- {"Image"}
+ {Locale.Chat.Actions.ExportAsImage}
)}
diff --git a/app/locales/cn.ts b/app/locales/cn.ts
index 1c198195e..fe3357fc7 100644
--- a/app/locales/cn.ts
+++ b/app/locales/cn.ts
@@ -18,6 +18,7 @@ const cn = {
Stop: "停止",
Retry: "重试",
Delete: "删除",
+ ExportAsImage: "导出为图片",
},
Rename: "重命名对话",
Typing: "正在输入…",
diff --git a/app/locales/de.ts b/app/locales/de.ts
index e71abfaf7..a40f752bb 100644
--- a/app/locales/de.ts
+++ b/app/locales/de.ts
@@ -20,6 +20,7 @@ const de: LocaleType = {
Stop: "Stop",
Retry: "Wiederholen",
Delete: "Delete",
+ ExportAsImage: "Exportieren als Bild",
},
Rename: "Chat umbenennen",
Typing: "Tippen...",
diff --git a/app/locales/en.ts b/app/locales/en.ts
index 20e569606..c156fa8e2 100644
--- a/app/locales/en.ts
+++ b/app/locales/en.ts
@@ -20,6 +20,7 @@ const en: LocaleType = {
Stop: "Stop",
Retry: "Retry",
Delete: "Delete",
+ ExportAsImage: "Export as Image",
},
Rename: "Rename Chat",
Typing: "Typing…",
diff --git a/app/locales/es.ts b/app/locales/es.ts
index e2a9eb211..acdba23c4 100644
--- a/app/locales/es.ts
+++ b/app/locales/es.ts
@@ -20,6 +20,7 @@ const es: LocaleType = {
Stop: "Detener",
Retry: "Reintentar",
Delete: "Delete",
+ ExportAsImage: "Exportar como imagen",
},
Rename: "Renombrar chat",
Typing: "Escribiendo...",
diff --git a/app/locales/it.ts b/app/locales/it.ts
index f0453b5c3..d7ef7601f 100644
--- a/app/locales/it.ts
+++ b/app/locales/it.ts
@@ -20,6 +20,7 @@ const it: LocaleType = {
Stop: "Stop",
Retry: "Riprova",
Delete: "Delete",
+ ExportAsImage: "Esporta come immagine",
},
Rename: "Rinomina Chat",
Typing: "Typing…",
diff --git a/app/locales/jp.ts b/app/locales/jp.ts
index 2818820b5..cfa61a1d7 100644
--- a/app/locales/jp.ts
+++ b/app/locales/jp.ts
@@ -1,6 +1,7 @@
import { SubmitKey } from "../store/app";
+import type { LocaleType } from "./index";
-const jp = {
+const jp: LocaleType = {
WIP: "この機能は開発中です……",
Error: {
Unauthorized:
@@ -19,6 +20,7 @@ const jp = {
Stop: "停止",
Retry: "リトライ",
Delete: "Delete",
+ ExportAsImage: "画像として生成する",
},
Rename: "チャットの名前を変更",
Typing: "入力中…",
diff --git a/app/locales/tr.ts b/app/locales/tr.ts
index 04a846245..27c83494e 100644
--- a/app/locales/tr.ts
+++ b/app/locales/tr.ts
@@ -20,6 +20,7 @@ const tr: LocaleType = {
Stop: "Durdur",
Retry: "Tekrar Dene",
Delete: "Delete",
+ ExportAsImage: "Görüntüyü dışa aktar",
},
Rename: "Sohbeti Yeniden Adlandır",
Typing: "Yazıyor…",
diff --git a/app/locales/tw.ts b/app/locales/tw.ts
index 44c07898d..552b784cb 100644
--- a/app/locales/tw.ts
+++ b/app/locales/tw.ts
@@ -19,6 +19,7 @@ const tw: LocaleType = {
Stop: "停止",
Retry: "重試",
Delete: "刪除",
+ ExportAsImage: "匯出成圖像",
},
Rename: "重命名對話",
Typing: "正在輸入…",