From 507b7fee56b8c63ffee6bbbe684f4acedaf27640 Mon Sep 17 00:00:00 2001 From: B0zal Date: Fri, 25 Aug 2023 06:31:33 +0700 Subject: [PATCH 1/3] [+] Language indonesia (my country) --- app/locales/id.ts | 349 +++++++++++++++++++++++++++++++++++++++++++ app/locales/index.ts | 3 + 2 files changed, 352 insertions(+) create mode 100644 app/locales/id.ts diff --git a/app/locales/id.ts b/app/locales/id.ts new file mode 100644 index 00000000..f73d94ef --- /dev/null +++ b/app/locales/id.ts @@ -0,0 +1,349 @@ +import { SubmitKey } from "../store/config"; +import { PartialLocaleType } from "./index"; + +const id: PartialLocaleType = { + WIP: "Coming Soon...", + Error: { + Unauthorized: + "Akses tidak diizinkan. Silakan [otorisasi](/#/auth) dengan memasukkan kode akses.", + }, + Auth: { + Title: "Diperlukan Kode Akses", + Tips: "Masukkan kode akses di bawah", + Input: "Kode Akses", + Confirm: "Konfirmasi", + Later: "Nanti", + }, + ChatItem: { + ChatItemCount: (count: number) => `${count} pesan`, + }, + Chat: { + SubTitle: (count: number) => `${count} pesan`, + Actions: { + ChatList: "Buka Daftar Chat", + CompressedHistory: "Ekspor Riwayat Terkompresi", + Export: "Ekspor Semua Pesan sebagai Markdown", + Copy: "Salin", + Stop: "Berhenti", + Retry: "Coba Lagi", + Pin: "Pin", + PinToastContent: "2 pesan telah ditandai", + PinToastAction: "Lihat", + Delete: "Hapus", + Edit: "Edit", + }, + Commands: { + new: "Mulai Chat Baru", + newm: "Mulai Chat Baru dengan Masks", + next: "Chat Selanjutnya", + prev: "Chat Sebelumnya", + clear: "Bersihkan Percakapan", + del: "Hapus Chat", + }, + InputActions: { + Stop: "Berhenti", + ToBottom: "Ke Bagian Bawah", + Theme: { + auto: "Otomatis", + light: "Tema Terang", + dark: "Tema Gelap", + }, + Prompt: "Prompts", + Masks: "Masks", + Clear: "Bersihkan Percakapan", + Settings: "Pengaturan", + }, + Rename: "Ubah Nama Chat", + Typing: "Mengetik...", + Input: (submitKey: string) => { + var inputHints = `${submitKey} untuk mengirim`; + if (submitKey === String(SubmitKey.Enter)) { + inputHints += ", Shift + Enter untuk membalut"; + } + return inputHints + ", / untuk mencari prompt, : untuk menggunakan perintah"; + }, + Send: "Kirim", + Config: { + Reset: "Reset ke Default", + SaveAs: "Simpan sebagai Masks", + }, + }, + Export: { + Title: "Ekspor Pesan", + Copy: "Salin Semua", + Download: "Unduh", + MessageFromYou: "Pesan dari Anda", + MessageFromChatGPT: "Pesan dari ChatGPT", + Share: "Bagikan ke ShareGPT", + Format: { + Title: "Format Ekspor", + SubTitle: "Markdown atau Gambar PNG", + }, + IncludeContext: { + Title: "Sertakan Konteks", + SubTitle: "Apakah akan menyertakan masks", + }, + Steps: { + Select: "Pilih", + Preview: "Pratinjau", + }, + }, + Select: { + Search: "Cari", + All: "Pilih Semua", + Latest: "Pilih Terbaru", + Clear: "Bersihkan", + }, + Memory: { + Title: "Prompt Memori", + EmptyContent: "Belum ada yang tersedia.", + Send: "Kirim Memori", + Copy: "Salin Memori", + Reset: "Reset", + ResetConfirm: + "Jika Anda mereset, riwayat obrolan saat ini dan memori historis akan dihapus. Apakah Anda yakin ingin melakukan reset?", + }, + Home: { + NewChat: "Obrolan Baru", + DeleteChat: "Anda yakin ingin menghapus percakapan yang dipilih?", + DeleteToast: "Percakapan telah dihapus", + Revert: "Kembali", + }, + Settings: { + Title: "Pengaturan", + SubTitle: "Semua Pengaturan", + Danger: { + Reset: { + Title: "Setel Ulang Semua Pengaturan", + SubTitle: "Mengembalikan semua pengaturan ke nilai default", + Action: "Setel Ulang", + Confirm: "Anda yakin ingin mengembalikan semua pengaturan ke nilai default?", + }, + Clear: { + Title: "Hapus Semua Data", + SubTitle: "Menghapus semua pesan dan pengaturan", + Action: "Hapus", + Confirm: "Anda yakin ingin menghapus semua pesan dan pengaturan?", + }, + }, + Lang: { + Name: "Bahasa", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language` + All: "Semua Bahasa", + }, + Avatar: "Avatar", + FontSize: { + Title: "Ukuran Font", + SubTitle: "Ubah ukuran font konten chat", + }, + InjectSystemPrompts: { + Title: "Suntikkan Petunjuk Sistem", + SubTitle: + "Tambahkan petunjuk simulasi sistem ChatGPT di awal daftar pesan yang diminta dalam setiap permintaan", + }, + InputTemplate: { + Title: "Template Input", + SubTitle: "Pesan baru akan diisi menggunakan template ini", + }, + + Update: { + Version: (x: string) => `Version: ${x}`, + IsLatest: "Versi terbaru", + CheckUpdate: "Periksa Pembaruan", + IsChecking: "Memeriksa pembaruan...", + FoundUpdate: (x: string) => `Versi terbaru ditemukan: ${x}`, + GoToUpdate: "Perbarui Sekarang", + }, + AutoGenerateTitle: { + Title: "Hasilkan Judul Otomatis", + SubTitle: "Hasilkan judul yang sesuai berdasarkan konten percakapan", + }, + SendKey: "Kirim", + Theme: "Tema", + TightBorder: "Batas Ketat", + SendPreviewBubble: { + Title: "Pratinjau Obrolan", + SubTitle: "Pratinjau Obrolan dengan markdown", + }, + Mask: { + Splash: { + Title: "Layar Pembuka Masks", + SubTitle: + "Tampilkan layar pembuka masks sebelum memulai percakapan baru", + }, + Builtin: { + Title: "Sembunyikan Masks Bawaan", + SubTitle: "Sembunyikan Masks bawaan dari daftar masks", + }, + }, + Prompt: { + Disable: { + Title: "Nonaktifkan Otomatisasi", + SubTitle: "Aktifkan/Matikan otomatisasi", + }, + List: "Daftar Prompt", + ListCount: (builtin: number, custom: number) => + `${builtin} bawaan, ${custom} penggunaan khusus`, + Edit: "Edit", + Modal: { + Title: "Daftar Prompt", + Add: "Tambahkan", + Search: "Cari Prompt", + }, + EditModal: { + Title: "Edit Prompt", + }, + }, + HistoryCount: { + Title: "Jumlah Pesan Riwayat", + SubTitle: "Jumlah pesan yang akan dikirim setiap permintaan", + }, + CompressThreshold: { + Title: "Batas Kompresi Riwayat", + SubTitle: + "Jika panjang pesan melebihi batas yang ditentukan, pesan tersebut akan dikompresi", + }, + Token: { + Title: "Kunci API", + SubTitle: "Gunakan kunci Anda untuk melewati batas kode akses", + Placeholder: "Kunci API OpenAI", + }, + Usage: { + Title: "Saldo Akun", + SubTitle(used: any, total: any) { + return `Digunakan bulan ini: ${used}, total langganan: ${total}`; + }, + IsChecking: "Memeriksa...", + Check: "Periksa", + NoAccess: "Masukkan kunci API untuk memeriksa saldo", + }, + AccessCode: { + Title: "Kode Akses", + SubTitle: "Kontrol akses diaktifkan", + Placeholder: "Diperlukan kode akses", + }, + Endpoint: { + Title: "Endpoint", + SubTitle: "Harus dimulai dengan http(s):// untuk endpoint kustom", + }, + Model: "Model", + Temperature: { + Title: "Suhu", + SubTitle: "Semakin tinggi nilainya, semakin acak keluarannya", + }, + TopP: { + Title: "Top P", + SubTitle: "Tidak mengubah nilai dengan suhu", + }, + MaxTokens: { + Title: "Token Maksimum", + SubTitle: "Panjang maksimum token input dan output", + }, + PresencePenalty: { + Title: "Penalti Kehadiran", + SubTitle: "Semakin tinggi nilai, semakin mungkin topik baru muncul", + }, + FrequencyPenalty: { + Title: "Penalti Frekuensi", + SubTitle: "Semakin tinggi nilai, semakin rendah kemungkinan penggunaan ulang baris yang sama", + }, + }, + Store: { + DefaultTopic: "Percakapan Baru", + BotHello: "Halo! Bagaimana saya bisa membantu Anda hari ini?", + Error: "Terjadi kesalahan, silakan coba lagi nanti.", + Prompt: { + History: (content: string) => + "Ini adalah ringkasan singkat dari riwayat percakapan: " + content, + Topic: + "Buat judul berisi empat hingga lima kata untuk percakapan kita yang tidak akan disertakan dalam ringkasan percakapan, seperti instruksi, format, kutipan, tanda baca awal, tanda kutip pendahuluan, atau karakter tambahan. Silakan coba dengan kutipan berakhir.", + Summarize: + "Buat ringkasan percakapan dalam 200 kata yang akan digunakan sebagai promp di masa depan.", + }, + }, + Copy: { + Success: "Berhasil disalin ke clipboard", + Failed: "Gagal menyalin, berikan izin untuk memberikan izin", + }, + Context: { + Toast: (x: any) => `Dengan ${x} promp kontekstual`, + Edit: "Pengaturan Obrolan Saat Ini", + Add: "Tambahkan Promp", + Clear: "Bersihkan Konteks", + Revert: "Kembali ke Posisi Sebelumnya", + }, + Plugin: { + Name: "Plugin", + }, + Mask: { + Name: "Masks", + Page: { + Title: "Template Promp", + SubTitle: (count: number) => `${count} template prompt`, + Search: "Cari template", + Create: "Buat", + }, + Item: { + Info: (count: number) => `${count} prompt`, + Chat: "Obrolan", + View: "Lihat", + Edit: "Edit", + Delete: "Hapus", + DeleteConfirm: "Anda yakin ingin menghapus?", + }, + EditModal: { + Title: (readonly: boolean) => + `Edit Template Prompt ${readonly ? "(hanya baca)" : ""}`, + Download: "Unduh", + Clone: "Duplikat", + }, + Config: { + Avatar: "Avatar Bot", + Name: "Nama Bot", + Sync: { + Title: "Gunakan Konfigurasi Global", + SubTitle: "Gunakan konfigurasi global dalam percakapan ini", + Confirm: + "Pastikan untuk mengganti konfigurasi kustom dengan konfigurasi global?", + }, + HideContext: { + Title: "Sembunyikan Prompt Konteks", + SubTitle: "Tidak menampilkan prompt konteks dalam obrolan", + }, + Share: { + Title: "Bagikan Masks Ini", + SubTitle: "Buat tautan untuk masks ini", + Action: "Salin Tautan", + }, + }, + }, + NewChat: { + Return: "Kembali", + Skip: "Lewati", + Title: "Pilih Masks", + SubTitle: "Berkonversasilah dengan diri Anda di balik masks", + More: "Lebih Lanjut", + NotShow: "Jangan Tampilkan Sekarang", + ConfirmNoShow: + "Pastikan untuk menonaktifkannya? Anda dapat mengaktifkannya nanti melalui pengaturan.", + }, + + UI: { + Confirm: "Konfirmasi", + Cancel: "Batal", + Close: "Tutup", + Create: "Buat", + Edit: "Edit", + }, + Exporter: { + Model: "Model", + Messages: "Pesan", + Topic: "Topik", + Time: "Waktu", + }, + URLCommand: { + Code: "Kode akses terdeteksi dari url, konfirmasi untuk mendaftar ? ", + Settings: "Pengaturan terdeteksi dari url, konfirmasi untuk diterapkan ?", + }, +}; + +export default id; diff --git a/app/locales/index.ts b/app/locales/index.ts index 528600be..79e314fa 100644 --- a/app/locales/index.ts +++ b/app/locales/index.ts @@ -1,6 +1,7 @@ import cn from "./cn"; import en from "./en"; import tw from "./tw"; +import id from "./id"; import fr from "./fr"; import es from "./es"; import it from "./it"; @@ -25,6 +26,7 @@ const ALL_LANGS = { tw, jp, ko, + id, fr, es, it, @@ -48,6 +50,7 @@ export const ALL_LANG_OPTIONS: Record = { tw: "繁體中文", jp: "日本語", ko: "한국어", + id: "Indonesia", fr: "Français", es: "Español", it: "Italiano", From e6cc1625b5e13b899d75a0ef35f2010b510fa721 Mon Sep 17 00:00:00 2001 From: B0zal Date: Fri, 25 Aug 2023 17:09:39 +0700 Subject: [PATCH 2/3] [+] FineTuned Sysmessage Depends for local language this for JSON Exporter --- app/components/exporter.tsx | 6 +++--- app/locales/ar.ts | 3 +++ app/locales/bn.ts | 4 ++-- app/locales/cn.ts | 5 ++++- app/locales/cs.ts | 4 ++-- app/locales/de.ts | 3 +++ app/locales/en.ts | 3 +++ app/locales/es.ts | 3 +++ app/locales/fr.ts | 3 +++ app/locales/id.ts | 3 +++ app/locales/it.ts | 3 +++ app/locales/jp.ts | 1 + app/locales/ko.ts | 3 +++ app/locales/ru.ts | 3 +++ app/locales/tr.ts | 3 +++ app/locales/tw.ts | 1 + app/locales/vi.ts | 3 +++ 17 files changed, 46 insertions(+), 8 deletions(-) diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx index 2e3cd84a..df794adc 100644 --- a/app/components/exporter.tsx +++ b/app/components/exporter.tsx @@ -575,7 +575,7 @@ export function JsonPreviewer(props: { messages: [ { role: "system", - content: "You are an assistant that " + props.topic, + content: `${Locale.FineTuned.Sysmessage} ${props.topic}`, }, ...props.messages.map((m) => ({ role: m.role, @@ -602,8 +602,8 @@ export function JsonPreviewer(props: { messages={props.messages} />
- +
); -} \ No newline at end of file +} diff --git a/app/locales/ar.ts b/app/locales/ar.ts index a86b1648..520cb263 100644 --- a/app/locales/ar.ts +++ b/app/locales/ar.ts @@ -233,6 +233,9 @@ ${builtin} مدمجة، ${custom} تم تعريفها من قبل المستخد Plugin: { Name: "المكوّن الإضافي", }, + FineTuned: { + Sysmessage: "أنت مساعد ي", + }, Mask: { Name: "الأقنعة", Page: { diff --git a/app/locales/bn.ts b/app/locales/bn.ts index 9eda157f..d9559d71 100644 --- a/app/locales/bn.ts +++ b/app/locales/bn.ts @@ -268,8 +268,8 @@ const bn: PartialLocaleType = { Clear: "সঙ্গতি পরিস্কার করুন", Revert: "পূর্ববর্তী অবস্থানে ফিরে যান", }, - Plugin: { - Name: "প্লাগইন", + FineTuned: { + Sysmessage: "আপনি একটি সহকারী যা", }, Mask: { Name: "মাস্ক", diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 19e804b3..3f4324a6 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -288,7 +288,10 @@ const cn = { Revert: "恢复上下文", }, Plugin: { - Name: "插件", + Name: "你是一个助手 ", + }, + FineTuned: { + Sysmessage: "你是一个助手", }, Mask: { Name: "面具", diff --git a/app/locales/cs.ts b/app/locales/cs.ts index b8a3b974..d1d5d635 100644 --- a/app/locales/cs.ts +++ b/app/locales/cs.ts @@ -185,8 +185,8 @@ const cs: PartialLocaleType = { Edit: "Kontextové a paměťové pokyny", Add: "Přidat pokyn", }, - Plugin: { - Name: "Plugin", + FineTuned: { + Sysmessage: "Jste asistent, který", }, Mask: { Name: "Maska", diff --git a/app/locales/de.ts b/app/locales/de.ts index 59b1fc92..e0bdc52b 100644 --- a/app/locales/de.ts +++ b/app/locales/de.ts @@ -192,6 +192,9 @@ const de: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Du bist ein Assistent, der", + }, Mask: { Name: "Mask", Page: { diff --git a/app/locales/en.ts b/app/locales/en.ts index 64cdc38b..98135727 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -295,6 +295,9 @@ const en: LocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "You are an assistant that", + }, Mask: { Name: "Mask", Page: { diff --git a/app/locales/es.ts b/app/locales/es.ts index 6145eccc..a6ae154f 100644 --- a/app/locales/es.ts +++ b/app/locales/es.ts @@ -190,6 +190,9 @@ const es: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Eres un asistente que", + }, Mask: { Name: "Mask", Page: { diff --git a/app/locales/fr.ts b/app/locales/fr.ts index a98d4a43..f5200f27 100644 --- a/app/locales/fr.ts +++ b/app/locales/fr.ts @@ -244,6 +244,9 @@ const fr: PartialLocaleType = { Plugin: { Name: "Extension", }, + FineTuned: { + Sysmessage: "Eres un asistente que", + }, Mask: { Name: "Masque", Page: { diff --git a/app/locales/id.ts b/app/locales/id.ts index f73d94ef..c3a2a5f8 100644 --- a/app/locales/id.ts +++ b/app/locales/id.ts @@ -274,6 +274,9 @@ const id: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Anda adalah asisten yang", + }, Mask: { Name: "Masks", Page: { diff --git a/app/locales/it.ts b/app/locales/it.ts index 6a2eabf4..bf20747b 100644 --- a/app/locales/it.ts +++ b/app/locales/it.ts @@ -191,6 +191,9 @@ const it: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Sei un assistente che", + }, Mask: { Name: "Mask", Page: { diff --git a/app/locales/jp.ts b/app/locales/jp.ts index e27a4c6d..c3e00fa0 100644 --- a/app/locales/jp.ts +++ b/app/locales/jp.ts @@ -204,6 +204,7 @@ const jp: PartialLocaleType = { Add: "追加", }, Plugin: { Name: "プラグイン" }, + FineTuned: { Sysmessage: "あなたはアシスタントです" }, Mask: { Name: "キャラクタープリセット", Page: { diff --git a/app/locales/ko.ts b/app/locales/ko.ts index 194e4476..717ce30b 100644 --- a/app/locales/ko.ts +++ b/app/locales/ko.ts @@ -186,6 +186,9 @@ const ko: PartialLocaleType = { Plugin: { Name: "플러그인", }, + FineTuned: { + Sysmessage: "당신은 어시스턴트입니다", + }, Mask: { Name: "마스크", Page: { diff --git a/app/locales/ru.ts b/app/locales/ru.ts index 313acf54..bf98b4eb 100644 --- a/app/locales/ru.ts +++ b/app/locales/ru.ts @@ -191,6 +191,9 @@ const ru: PartialLocaleType = { Plugin: { Name: "Плагин", }, + FineTuned: { + Sysmessage: "Вы - ассистент, который", + }, Mask: { Name: "Маска", Page: { diff --git a/app/locales/tr.ts b/app/locales/tr.ts index 46fdd628..06996d83 100644 --- a/app/locales/tr.ts +++ b/app/locales/tr.ts @@ -191,6 +191,9 @@ const tr: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Sen bir asistansın", + }, Mask: { Name: "Mask", Page: { diff --git a/app/locales/tw.ts b/app/locales/tw.ts index ad1ee0bb..15f6648e 100644 --- a/app/locales/tw.ts +++ b/app/locales/tw.ts @@ -180,6 +180,7 @@ const tw: PartialLocaleType = { Add: "新增一條", }, Plugin: { Name: "外掛" }, + FineTuned: { Sysmessage: "你是一個助手" }, Mask: { Name: "面具", Page: { diff --git a/app/locales/vi.ts b/app/locales/vi.ts index 2117734b..8f53a3dc 100644 --- a/app/locales/vi.ts +++ b/app/locales/vi.ts @@ -186,6 +186,9 @@ const vi: PartialLocaleType = { Plugin: { Name: "Plugin", }, + FineTuned: { + Sysmessage: "Bạn là một trợ lý", + }, Mask: { Name: "Mẫu", Page: { From 63c93a42b5fa5973edf102a6ece29aa294538375 Mon Sep 17 00:00:00 2001 From: B0zal Date: Fri, 25 Aug 2023 18:15:50 +0700 Subject: [PATCH 3/3] [+] Fixed language missing for finetuned --- app/locales/bn.ts | 3 +++ app/locales/cn.ts | 2 +- app/locales/cs.ts | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/locales/bn.ts b/app/locales/bn.ts index d9559d71..2d2266b3 100644 --- a/app/locales/bn.ts +++ b/app/locales/bn.ts @@ -268,6 +268,9 @@ const bn: PartialLocaleType = { Clear: "সঙ্গতি পরিস্কার করুন", Revert: "পূর্ববর্তী অবস্থানে ফিরে যান", }, + Plugin: { + Name: "প্লাগইন", + }, FineTuned: { Sysmessage: "আপনি একটি সহকারী যা", }, diff --git a/app/locales/cn.ts b/app/locales/cn.ts index 3f4324a6..7c0473bb 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -288,7 +288,7 @@ const cn = { Revert: "恢复上下文", }, Plugin: { - Name: "你是一个助手 ", + Name: "插件", }, FineTuned: { Sysmessage: "你是一个助手", diff --git a/app/locales/cs.ts b/app/locales/cs.ts index d1d5d635..57aa803e 100644 --- a/app/locales/cs.ts +++ b/app/locales/cs.ts @@ -185,6 +185,9 @@ const cs: PartialLocaleType = { Edit: "Kontextové a paměťové pokyny", Add: "Přidat pokyn", }, + Plugin: { + Name: "Plugin", + }, FineTuned: { Sysmessage: "Jste asistent, který", },