Skip to content

Commit

Permalink
✨ feat: add system agent to select another model provider for transla…
Browse files Browse the repository at this point in the history
…tion (lobehub#1902)

* ✨ feat: add support for change default translation agent

* 🚸 style: fix improve menu accessibility

* ✨ feat: add system agent module

* 🌐 chore: add i18n

* 🌐 chore: add i18n

* ♻️ refactor: refactor the ModelSelect

---------

Co-authored-by: arvinxx <arvinx@foxmail.com>
  • Loading branch information
phsontung and arvinxx authored May 21, 2024
1 parent 56fe865 commit 3945387
Show file tree
Hide file tree
Showing 44 changed files with 720 additions and 306 deletions.
9 changes: 9 additions & 0 deletions locales/ar/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC مزامنة"
}
},
"systemAgent": {
"title": "مساعد النظام",
"translation": {
"label": "نموذج الترجمة",
"modelDesc": "النموذج المحدد للاستخدام في الترجمة",
"title": "إعدادات مساعد الترجمة"
}
},
"tab": {
"about": "حول",
"agent": "المساعد الافتراضي",
"common": "إعدادات عامة",
"experiment": "تجربة",
"llm": "نموذج اللغة",
"sync": "مزامنة السحابة",
"system-agent": "مساعد النظام",
"tts": "خدمة الكلام"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/bg-BG/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC синхронизиране"
}
},
"systemAgent": {
"title": "Системен асистент",
"translation": {
"label": "Модел за превод",
"modelDesc": "Определя модела, използван за превод",
"title": "Настройки на преводния асистент"
}
},
"tab": {
"about": "Относно",
"agent": "Агент по подразбиране",
"common": "Общи настройки",
"experiment": "Експеримент",
"llm": "Езиков модел",
"sync": "Синхронизиране в облака",
"system-agent": "Системен асистент",
"tts": "Текст към реч"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/de-DE/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC-Synchronisierung"
}
},
"systemAgent": {
"title": "Systemassistent",
"translation": {
"label": "Übersetzungsmodell",
"modelDesc": "Das für die Übersetzung verwendete Modell",
"title": "Einstellungen für Übersetzungsassistent"
}
},
"tab": {
"about": "Über",
"agent": "Standard-Assistent",
"common": "Allgemeine Einstellungen",
"experiment": "Experiment",
"llm": "Sprachmodell",
"sync": "Cloud-Synchronisierung",
"system-agent": "Systemassistent",
"tts": "Sprachdienste"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/en-US/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC Sync"
}
},
"systemAgent": {
"title": "System Agents",
"translation": {
"label": "Translation Agent",
"modelDesc": "Specific model for translate message",
"title": "Translation Settings"
}
},
"tab": {
"about": "About",
"agent": "Default Agent",
"common": "Common Settings",
"experiment": "Experiment",
"llm": "Language Model",
"sync": "Cloud Sync",
"system-agent": "System Agent",
"tts": "Text-to-Speech"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/es-ES/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "Sincronización WebRTC"
}
},
"systemAgent": {
"title": "Asistente del sistema",
"translation": {
"label": "Modelo de traducción",
"modelDesc": "Especifica el modelo a utilizar para la traducción",
"title": "Configuración del asistente de traducción"
}
},
"tab": {
"about": "Acerca de",
"agent": "Asistente predeterminado",
"common": "Configuración común",
"experiment": "Experimento",
"llm": "Modelo de lenguaje",
"sync": "Sincronización en la nube",
"system-agent": "Asistente del sistema",
"tts": "Servicio de voz"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/fr-FR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "Synchronisation WebRTC"
}
},
"systemAgent": {
"title": "Assistant système",
"translation": {
"label": "Modèle de traduction",
"modelDesc": "Modèle spécifié pour la traduction",
"title": "Paramètres de l'assistant de traduction"
}
},
"tab": {
"about": "À propos",
"agent": "Agent par défaut",
"common": "Paramètres généraux",
"experiment": "Expérience",
"llm": "Modèle de langue",
"sync": "Synchronisation cloud",
"system-agent": "Assistant système",
"tts": "Service vocal"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/it-IT/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "Sincronizzazione WebRTC"
}
},
"systemAgent": {
"title": "Assistente di sistema",
"translation": {
"label": "Modello di traduzione",
"modelDesc": "Modello specificato per la traduzione",
"title": "Impostazioni dell'assistente di traduzione"
}
},
"tab": {
"about": "Informazioni",
"agent": "Assistente predefinito",
"common": "Impostazioni comuni",
"experiment": "实验",
"llm": "Modello linguistico",
"sync": "云端同步",
"system-agent": "Assistente di sistema",
"tts": "Servizio vocale"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/ja-JP/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC 同期"
}
},
"systemAgent": {
"title": "システムアシスタント",
"translation": {
"label": "翻訳モデル",
"modelDesc": "翻訳に使用するモデルを指定します",
"title": "翻訳アシスタントの設定"
}
},
"tab": {
"about": "について",
"agent": "デフォルトエージェント",
"common": "一般設定",
"experiment": "実験",
"llm": "言語モデル",
"sync": "クラウド同期",
"system-agent": "システムアシスタント",
"tts": "音声サービス"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/ko-KR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC 동기화"
}
},
"systemAgent": {
"title": "시스템 도우미",
"translation": {
"label": "번역 모델",
"modelDesc": "번역에 사용되는 모델 지정",
"title": "번역 도우미 설정"
}
},
"tab": {
"about": "소개",
"agent": "기본 에이전트",
"common": "일반 설정",
"experiment": "실험",
"llm": "언어 모델",
"sync": "클라우드 동기화",
"system-agent": "시스템 도우미",
"tts": "음성 서비스"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/nl-NL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "WebRTC Synchronisatie"
}
},
"systemAgent": {
"title": "Systeemassistent",
"translation": {
"label": "Vertaalmodel",
"modelDesc": "Specificeer het model voor vertaling",
"title": "Instellingen voor vertaalassistent"
}
},
"tab": {
"about": "Over",
"agent": "Standaardassistent",
"common": "Algemene instellingen",
"experiment": "Experiment",
"llm": "Taalmodel",
"sync": "Cloudsynchronisatie",
"system-agent": "Systeemassistent",
"tts": "Spraakdienst"
},
"tools": {
Expand Down
50 changes: 30 additions & 20 deletions locales/pl-PL/setting.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"": {},
"about": {
"title": "O nas"
},
Expand Down Expand Up @@ -328,44 +329,53 @@
"sync": {
"device": {
"deviceName": {
"hint": "添加名称以便于识别",
"placeholder": "请输入设备名称",
"title": "设备名称"
"hint": "Dodaj nazwę, aby ułatwić identyfikację",
"placeholder": "Wprowadź nazwę urządzenia",
"title": "Nazwa urządzenia"
},
"title": "设备信息",
"unknownBrowser": "未知浏览器",
"unknownOS": "未知系统"
"title": "Informacje o urządzeniu",
"unknownBrowser": "Nieznana przeglądarka",
"unknownOS": "Nieznany system"
},
"warning": {
"message": "本功能目前仍为实验性功能,可能存在预期外或不稳定的情况,如遇到问题请及时提交反馈。"
"message": "Ta funkcja jest obecnie eksperymentalna i może działać nieprzewidywalnie lub niestabilnie. W przypadku problemów prosimy o natychmiastowe zgłoszenie opinii."
},
"webrtc": {
"channelName": {
"desc": "WebRTC 将使用此名创建同步频道,确保频道名称唯一",
"placeholder": "请输入同步频道名称",
"shuffle": "随机生成",
"title": "同步频道名称"
"desc": "WebRTC użyje tej nazwy do utworzenia kanału synchronizacji, upewnij się, że nazwa kanału jest unikalna",
"placeholder": "Wprowadź nazwę kanału synchronizacji",
"shuffle": "Wygeneruj losowo",
"title": "Nazwa kanału synchronizacji"
},
"channelPassword": {
"desc": "添加密码确保频道私密性,只有密码正确时,设备才可加入频道",
"placeholder": "请输入同步频道密码",
"title": "同步频道密码"
"desc": "Dodaj hasło, aby zapewnić prywatność kanału. Tylko urządzenia z poprawnym hasłem mogą dołączyć do kanału",
"placeholder": "Wprowadź hasło kanału synchronizacji",
"title": "Hasło kanału synchronizacji"
},
"desc": "实时、点对点的数据通信,需设备同时在线才可同步",
"desc": "Bezpośrednia, punkt-do-punktu komunikacja danych w czasie rzeczywistym, wymaga jednoczesnej obecności urządzeń online do synchronizacji",
"enabled": {
"invalid": "请填写同步频道名称后再开启",
"title": "开启同步"
"invalid": "Wprowadź nazwę kanału synchronizacji przed włączeniem",
"title": "Włącz synchronizację"
},
"title": "WebRTC 同步"
"title": "Synchronizacja WebRTC"
}
},
"systemAgent": {
"title": "Asystent Systemowy",
"translation": {
"label": "Model Tłumaczenia",
"modelDesc": "Określ model używany do tłumaczenia",
"title": "Ustawienia Asystenta Tłumaczenia"
}
},
"tab": {
"about": "O nas",
"agent": "Domyślny asystent",
"common": "Ustawienia ogólne",
"experiment": "实验",
"experiment": "Eksperyment",
"llm": "Model językowy",
"sync": "云端同步",
"sync": "Synchronizacja w chmurze",
"system-agent": "System Assistant",
"tts": "Usługa głosowa"
},
"tools": {
Expand Down
9 changes: 9 additions & 0 deletions locales/pt-BR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,22 @@
"title": "Sincronização WebRTC"
}
},
"systemAgent": {
"title": "Assistente do Sistema",
"translation": {
"label": "Modelo de Tradução",
"modelDesc": "Especifica o modelo usado para tradução",
"title": "Configurações do Assistente de Tradução"
}
},
"tab": {
"about": "Sobre",
"agent": "Assistente Padrão",
"common": "Configurações Comuns",
"experiment": "Experimento",
"llm": "Modelo de Linguagem",
"sync": "Sincronização na nuvem",
"system-agent": "Assistente do Sistema",
"tts": "Serviço de Voz"
},
"tools": {
Expand Down
Loading

0 comments on commit 3945387

Please sign in to comment.