feat: add an option to show/hide original text in translation, also closes #1492 (#1511)

This commit is contained in:
Huang Xin
2025-07-02 13:27:05 +08:00
committed by GitHub
parent a254139200
commit 8eefba2bee
34 changed files with 203 additions and 53 deletions
+2 -1
View File
@@ -172,6 +172,7 @@ export const DEFAULT_TRANSLATOR_CONFIG: TranslatorConfig = {
translationEnabled: false,
translationProvider: 'deepl',
translateTargetLang: '',
showTranslateSource: true,
};
export const DEFAULT_SCREEN_CONFIG: ScreenConfig = {
@@ -542,7 +543,7 @@ export const SYNC_NOTES_INTERVAL_SEC = 5;
export const SYNC_BOOKS_INTERVAL_SEC = 5;
export const CHECK_UPDATE_INTERVAL_SEC = 24 * 60 * 60;
export const RELOAD_BEFREE_SAVED_TIMEOUT_MS = 300;
export const RELOAD_BEFORE_SAVED_TIMEOUT_MS = 300;
export const MAX_ZOOM_LEVEL = 500;
export const MIN_ZOOM_LEVEL = 50;