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