aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-08-17 22:54:41 +0100
committerLibravatar GitHub <noreply@github.com>2022-08-17 22:54:41 +0100
commitfb0cc81d1db0d88c90bb112a0caec66095fcc0f0 (patch)
treeaaa5d0f92f55ccf3984af2cbf2ebbcb1da5fd7c6 /src/webview/recipe.js
parent6.0.1-nightly.16 [skip ci] (diff)
downloadferdium-app-fb0cc81d1db0d88c90bb112a0caec66095fcc0f0.tar.gz
ferdium-app-fb0cc81d1db0d88c90bb112a0caec66095fcc0f0.tar.zst
ferdium-app-fb0cc81d1db0d88c90bb112a0caec66095fcc0f0.zip
Feature: Add Ferdium Translator (#548)
Add feature to translate text natively using https://github.com/shikar/NODE_GOOGLE_TRANSLATE package and a LibreTranslate self-hosted option (already running on our server on https://translator.ferdium.org).
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r--src/webview/recipe.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index 8c93da202..acf4f9f31 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -188,6 +188,9 @@ class RecipeController {
188 () => this.spellcheckerLanguage, 188 () => this.spellcheckerLanguage,
189 () => this.settings.app.searchEngine, 189 () => this.settings.app.searchEngine,
190 () => this.settings.app.clipboardNotifications, 190 () => this.settings.app.clipboardNotifications,
191 () => this.settings.app.enableTranslator,
192 () => this.settings.app.translatorEngine,
193 () => this.settings.app.translatorLanguage,
191 ); 194 );
192 195
193 autorun(() => this.update()); 196 autorun(() => this.update());
@@ -293,6 +296,9 @@ class RecipeController {
293 ); 296 );
294 debug('darkReaderSettigs', this.settings.service.darkReaderSettings); 297 debug('darkReaderSettigs', this.settings.service.darkReaderSettings);
295 debug('searchEngine', this.settings.app.searchEngine); 298 debug('searchEngine', this.settings.app.searchEngine);
299 debug('enableTranslator', this.settings.app.enableTranslator);
300 debug('translatorEngine', this.settings.app.translatorEngine);
301 debug('translatorLanguage', this.settings.app.translatorLanguage);
296 302
297 if (this.userscript && this.userscript.internal_setSettings) { 303 if (this.userscript && this.userscript.internal_setSettings) {
298 this.userscript.internal_setSettings(this.settings); 304 this.userscript.internal_setSettings(this.settings);