From e6cc1625b5e13b899d75a0ef35f2010b510fa721 Mon Sep 17 00:00:00 2001 From: B0zal Date: Fri, 25 Aug 2023 17:09:39 +0700 Subject: [PATCH] [+] 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 2e3cd84aa..df794adce 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 a86b1648a..520cb2635 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 9eda157f5..d9559d719 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 19e804b3a..3f4324a6f 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 b8a3b974c..d1d5d6357 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 59b1fc927..e0bdc52b7 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 64cdc38bb..981357274 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 6145eccc8..a6ae154f4 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 a98d4a432..f5200f271 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 f73d94ef9..c3a2a5f88 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 6a2eabf40..bf20747b1 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 e27a4c6d9..c3e00fa09 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 194e44769..717ce30b2 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 313acf544..bf98b4eb8 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 46fdd6285..06996d83d 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 ad1ee0bb6..15f6648e6 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 2117734b0..8f53a3dc1 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: {