Add Firefox (Bergamot) translation settings
This commit is contained in:
@@ -512,6 +512,7 @@ export const languageChinese = {
|
||||
"showMenuChatList": "在菜单中显示聊天列表",
|
||||
"translatorLanguage": "翻译目标语言",
|
||||
"translatorType": "翻译器类型",
|
||||
"htmlTranslation": "HTML 翻译",
|
||||
"deeplKey": "DeepL API 密钥",
|
||||
"deeplFreeKey": "DeepL 免费 API 密钥",
|
||||
"deeplXUrl": "DeepLX URL",
|
||||
|
||||
@@ -419,6 +419,7 @@ export const languageGerman = {
|
||||
showMenuChatList: "Menü-Chatliste anzeigen",
|
||||
translatorLanguage: "Übersetzer-Sprache",
|
||||
translatorType: "Übersetzer-Typ",
|
||||
htmlTranslation: "HTML-Übersetzung",
|
||||
deeplKey: "DeepL API-Schlüssel",
|
||||
deeplFreeKey: "DeepL Gratis API-Schlüssel",
|
||||
deeplXUrl: "deepLX URL",
|
||||
|
||||
@@ -702,6 +702,7 @@ export const languageEnglish = {
|
||||
showMenuChatList: "Show Menu Chat List",
|
||||
translatorLanguage: "Translator Language",
|
||||
translatorType: "Translator Type",
|
||||
htmlTranslation: "HTML Translate",
|
||||
deeplKey: "deepL API Key",
|
||||
deeplFreeKey: "deepL Free API Key",
|
||||
deeplXUrl: "deepLX URL",
|
||||
|
||||
@@ -474,6 +474,7 @@ export const languageSpanish = {
|
||||
showMenuChatList: "Mostrar Menú de Lista de Chats",
|
||||
translatorLanguage: "Idioma del Traductor",
|
||||
translatorType: "Tipo de Traductor",
|
||||
htmlTranslation: "Traducción de HTML",
|
||||
deeplKey: "Clave API de DeepL",
|
||||
deeplFreeKey: "Clave API Gratis de DeepL",
|
||||
deeplXUrl: "URL de DeepLX",
|
||||
|
||||
@@ -651,6 +651,7 @@ export const languageKorean = {
|
||||
"showMenuChatList": "메뉴에서 채팅 리스트 보이기",
|
||||
"translatorLanguage": "번역기 언어",
|
||||
"translatorType": "번역기 타입",
|
||||
"htmlTranslation": "HTML 번역",
|
||||
"deeplKey": "deepL API 키",
|
||||
"deeplFreeKey": "deepL 무료 API 키",
|
||||
"deeplXUrl": "deepLX URL",
|
||||
|
||||
@@ -390,6 +390,7 @@ export const LanguageVietnamese = {
|
||||
"showMenuChatList": "Hiển thị Menu Danh sách Trò chuyện",
|
||||
"translatorLanguage": "Ngôn ngữ dịch",
|
||||
"translatorType": "Loại dịch giả",
|
||||
"htmlTranslation": "Dịch HTML",
|
||||
"deeplKey": "Khóa API deepL",
|
||||
"deeplFreeKey": "Khóa API miễn phí deepL",
|
||||
"deeplXUrl": "deepLX URL",
|
||||
|
||||
@@ -518,6 +518,7 @@ export const languageChineseTraditional = {
|
||||
"showMenuChatList": "在選單中顯示聊天列表",
|
||||
"translatorLanguage": "翻譯目標語言",
|
||||
"translatorType": "翻譯器類型",
|
||||
"htmlTranslation": "HTML 翻譯",
|
||||
"deeplKey": "DeepL API 金鑰",
|
||||
"deeplFreeKey": "DeepL 免費 API 金鑰",
|
||||
"deeplXUrl": "DeepLX URL",
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
<OptionInput value="deepl" >DeepL</OptionInput>
|
||||
<OptionInput value="llm" >Ax. Model</OptionInput>
|
||||
<OptionInput value="deeplX" >DeepL X</OptionInput>
|
||||
<OptionInput value="bergamot" >Firefox</OptionInput>
|
||||
</SelectInput>
|
||||
|
||||
{#if DBState.db.translatorType === 'deepl'}
|
||||
@@ -135,6 +136,11 @@
|
||||
</SelectInput>
|
||||
{/if}
|
||||
|
||||
{#if DBState.db.translatorType === 'bergamot'}
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={DBState.db.htmlTranslation} name={language.htmlTranslation}/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="flex items-center mt-2">
|
||||
<Check bind:check={DBState.db.autoTranslate} name={language.autoTranslation}/>
|
||||
|
||||
@@ -335,6 +335,7 @@ export function setDatabase(data:Database){
|
||||
data.mancerHeader ??= ''
|
||||
data.emotionProcesser ??= 'submodel'
|
||||
data.translatorType ??= 'google'
|
||||
data.htmlTranslation ??= false
|
||||
data.deeplOptions ??= {
|
||||
key:'',
|
||||
freeApi: false
|
||||
@@ -735,8 +736,9 @@ export interface Database{
|
||||
mancerHeader:string
|
||||
emotionProcesser:'submodel'|'embedding',
|
||||
showMenuChatList?:boolean,
|
||||
translatorType:'google'|'deepl'|'none'|'llm'|'deeplX',
|
||||
translatorType:'google'|'deepl'|'none'|'llm'|'deeplX'|'bergamot',
|
||||
translatorInputLanguage?:string
|
||||
htmlTranslation?:boolean,
|
||||
NAIadventure?:boolean,
|
||||
NAIappendName?:boolean,
|
||||
deeplOptions:{
|
||||
|
||||
Reference in New Issue
Block a user