Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: multi-language for uploading files
  • Loading branch information
Na2CuCl4 committed Dec 21, 2025
commit 2f64016658bb5d9a10d6ccb6478f8209bf5b0b83
10 changes: 5 additions & 5 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ export function ChatActions(props: {
)}
<ChatAction
onClick={props.uploadFile}
text={"Upload File"}
text={Locale.Chat.InputActions.UploadFile}
icon={<UploadFileIcon />}
/>
<ChatAction
Expand Down Expand Up @@ -2178,7 +2178,7 @@ function _Chat() {
>
{(file.size / 1024).toFixed(1)} KB
{file.textSize !== undefined
? ` · parsed ${(
? ` · ${Locale.Chat.Parsed} ${(
file.textSize / 1024
).toFixed(1)} KB`
: ""}
Expand Down Expand Up @@ -2296,9 +2296,9 @@ function _Chat() {
{(f.size / 1024).toFixed(1)} KB
{f.status === "success" &&
f.textSize !== undefined
? ` · parsed ${(f.textSize! / 1024).toFixed(
1,
)} KB`
? ` · ${Locale.Chat.Parsed} ${(
f.textSize! / 1024
).toFixed(1)} KB`
: ""}
</div>
{f.status === "error" && (
Expand Down
2 changes: 2 additions & 0 deletions app/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const ar: PartialLocaleType = {
Clear: "مسح الدردشة",
Settings: "إعدادات الدردشة",
UploadImage: "تحميل صورة",
UploadFile: "تحميل ملف",
},
Parsed: "تم التحليل",
Rename: "إعادة تسمية الدردشة",
Typing: "يكتب…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const bn: PartialLocaleType = {
Clear: "চ্যাট পরিষ্কার করুন",
Settings: "চ্যাট সেটিংস",
UploadImage: "চিত্র আপলোড করুন",
UploadFile: "ফাইল আপলোড করুন",
},
Parsed: "বিশ্লেষিত",
Rename: "চ্যাট নাম পরিবর্তন করুন",
Typing: "লিখছে…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ const cn = {
Clear: "清除聊天",
Settings: "对话设置",
UploadImage: "上传图片",
UploadFile: "上传文件",
},
Parsed: "已解析",
Rename: "重命名对话",
Typing: "正在输入…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const cs: PartialLocaleType = {
Clear: "Vymazat konverzaci",
Settings: "Nastavení konverzace",
UploadImage: "Nahrát obrázek",
UploadFile: "Nahrát soubor",
},
Parsed: "Zpracováno",
Rename: "Přejmenovat konverzaci",
Typing: "Píše se…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/da.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const da: PartialLocaleType = {
Clear: "Ryd kontekst",
Settings: "Indstillinger",
UploadImage: "Upload billeder",
UploadFile: "Upload filer",
},
Parsed: "Fortolket",
Rename: "Omdøb chat",
Typing: "Skriver…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const de: PartialLocaleType = {
Clear: "Chat löschen",
Settings: "Gesprächseinstellungen",
UploadImage: "Bild hochladen",
UploadFile: "Datei hochladen",
},
Parsed: "Analysiert",
Rename: "Gespräch umbenennen",
Typing: "Tippt…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const en: PartialLocaleType = {
Clear: "Clear Context",
Settings: "Settings",
UploadImage: "Upload Images",
UploadFile: "Upload Files",
},
Parsed: "Parsed",
Rename: "Rename Chat",
Typing: "Typing…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const es: PartialLocaleType = {
Clear: "Limpiar chat",
Settings: "Configuración de conversación",
UploadImage: "Subir imagen",
UploadFile: "Subir archivo",
},
Parsed: "Analizado",
Rename: "Renombrar conversación",
Typing: "Escribiendo…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const fr: PartialLocaleType = {
Clear: "Effacer la discussion",
Settings: "Paramètres de la discussion",
UploadImage: "Télécharger une image",
UploadFile: "Télécharger un fichier",
},
Parsed: "Analysé",
Rename: "Renommer la discussion",
Typing: "En train d'écrire…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const id: PartialLocaleType = {
Clear: "Hapus Obrolan",
Settings: "Pengaturan Obrolan",
UploadImage: "Unggah Gambar",
UploadFile: "Unggah Berkas",
},
Parsed: "Sudah diurai",
Rename: "Ganti Nama Obrolan",
Typing: "Sedang Mengetik…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const it: PartialLocaleType = {
Clear: "Pulisci chat",
Settings: "Impostazioni conversazione",
UploadImage: "Carica immagine",
UploadFile: "Carica file",
},
Parsed: "Analizzato",
Rename: "Rinomina conversazione",
Typing: "Digitazione in corso…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/jp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const jp: PartialLocaleType = {
Clear: "チャットをクリア",
Settings: "チャット設定",
UploadImage: "画像をアップロード",
UploadFile: "ファイルをアップロード",
},
Parsed: "解析済み",
Rename: "チャットの名前を変更",
Typing: "入力中…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const ko: PartialLocaleType = {
Clear: "채팅 지우기",
Settings: "채팅 설정",
UploadImage: "이미지 업로드",
UploadFile: "파일 업로드",
},
Parsed: "파싱 완료",
Rename: "채팅 이름 변경",
Typing: "입력 중…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/no.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const no: PartialLocaleType = {
Clear: "Rydd samtale",
Settings: "Samtaleinnstillinger",
UploadImage: "Last opp bilde",
UploadFile: "Last opp fil",
},
Parsed: "Analysert",
Rename: "Gi nytt navn til samtale",
Typing: "Skriver…",
Input: (submitKey: string) => {
Expand Down
3 changes: 3 additions & 0 deletions app/locales/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ const pt: PartialLocaleType = {
Masks: "Máscaras",
Clear: "Limpar Contexto",
Settings: "Configurações",
UploadImage: "Carregar imagem",
UploadFile: "Carregar arquivo",
},
Parsed: "Analisado",
Rename: "Renomear Chat",
Typing: "Digitando…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const ru: PartialLocaleType = {
Clear: "Очистить чат",
Settings: "Настройки чата",
UploadImage: "Загрузить изображение",
UploadFile: "Загрузить файл",
},
Parsed: "Разобрано",
Rename: "Переименовать чат",
Typing: "Печатает…",
Input: (submitKey: string) => {
Expand Down
3 changes: 3 additions & 0 deletions app/locales/sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ const sk: PartialLocaleType = {
Masks: "Masky",
Clear: "Vymazať kontext",
Settings: "Nastavenia",
UploadImage: "Nahrať obrázok",
UploadFile: "Nahrať súbor",
},
Parsed: "Spracované",
Rename: "Premenovať Chat",
Typing: "Písanie…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const tr: PartialLocaleType = {
Clear: "Sohbeti temizle",
Settings: "Sohbet ayarları",
UploadImage: "Resim yükle",
UploadFile: "Dosya yükle",
},
Parsed: "Ayrıştırıldı",
Rename: "Sohbeti yeniden adlandır",
Typing: "Yazıyor…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const tw: PartialLocaleType = {
Clear: "清除聊天",
Settings: "對話設定",
UploadImage: "上傳圖片",
UploadFile: "上傳檔案",
},
Parsed: "已解析",
Rename: "重新命名對話",
Typing: "正在輸入…",
Input: (submitKey: string) => {
Expand Down
2 changes: 2 additions & 0 deletions app/locales/vi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const vi: PartialLocaleType = {
Clear: "Xóa cuộc trò chuyện",
Settings: "Cài đặt trò chuyện",
UploadImage: "Tải lên hình ảnh",
UploadFile: "Tải lên tệp",
},
Parsed: "Đã phân tích",
Rename: "Đổi tên cuộc trò chuyện",
Typing: "Đang nhập…",
Input: (submitKey: string) => {
Expand Down