diff options
author | 2022-08-17 22:54:41 +0100 | |
---|---|---|
committer | 2022-08-17 22:54:41 +0100 | |
commit | fb0cc81d1db0d88c90bb112a0caec66095fcc0f0 (patch) | |
tree | aaa5d0f92f55ccf3984af2cbf2ebbcb1da5fd7c6 /src/components | |
parent | 6.0.1-nightly.16 [skip ci] (diff) | |
download | ferdium-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/components')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.jsx b/src/components/settings/settings/EditSettingsForm.jsx index 0e5be38ed..e6cba922b 100644 --- a/src/components/settings/settings/EditSettingsForm.jsx +++ b/src/components/settings/settings/EditSettingsForm.jsx | |||
@@ -870,12 +870,24 @@ class EditSettingsForm extends Component { | |||
870 | {intl.formatMessage(messages.spellCheckerLanguageInfo)} | 870 | {intl.formatMessage(messages.spellCheckerLanguageInfo)} |
871 | </p> | 871 | </p> |
872 | )} | 872 | )} |
873 | |||
873 | <p className="settings__help"> | 874 | <p className="settings__help"> |
874 | {intl.formatMessage(messages.appRestartRequired)} | 875 | {intl.formatMessage(messages.appRestartRequired)} |
875 | </p> | 876 | </p> |
876 | 877 | ||
877 | <Hr /> | 878 | <Hr /> |
878 | 879 | ||
880 | <Toggle field={form.$('enableTranslator')} /> | ||
881 | |||
882 | {form.$('enableTranslator').value && ( | ||
883 | <Select field={form.$('translatorEngine')} /> | ||
884 | )} | ||
885 | {form.$('enableTranslator').value && ( | ||
886 | <Select field={form.$('translatorLanguage')} /> | ||
887 | )} | ||
888 | |||
889 | <Hr /> | ||
890 | |||
879 | <a | 891 | <a |
880 | href={FERDIUM_TRANSLATION} | 892 | href={FERDIUM_TRANSLATION} |
881 | target="_blank" | 893 | target="_blank" |