[feat][experimental] Add auto-translate input message functionality and language support in chat panel and settings

This commit adds new entries in the language files and UI support for auto-translate messages.

The new feature uses a textarea input field to translate messages as they are typed, and the translated text is shown in a new field. Also, the language settings now provide an option to enable/disable auto message translation.

The code changes include adding a new function to update the input sizes for both input fields and some minor code refactoring to support new functionality.
This commit is contained in:
LL
2023-06-06 18:37:19 +09:00
parent e913a641fa
commit 89dc9c8c80
6 changed files with 97 additions and 7 deletions

View File

@@ -500,9 +500,10 @@ export interface Database{
koboldURL:string
advancedBotSettings:boolean
useAutoSuggestions:boolean
autoSuggestPrompt:string,
claudeAPIKey:string,
useChatCopy:boolean,
autoSuggestPrompt:string
claudeAPIKey:string
useChatCopy:boolean
useAutoTranslateInput:boolean
}
interface hordeConfig{