diff options
author | 2017-11-14 21:04:41 +0100 | |
---|---|---|
committer | 2017-11-14 21:04:41 +0100 | |
commit | dcab45a323f53a10ff5f419daa5ba6442817eebc (patch) | |
tree | b9212d00a8c3a088292180d72895dfeef3536ed1 /src/i18n | |
parent | [wip] share user settings with service (diff) | |
download | ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.tar.gz ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.tar.zst ferdium-app-dcab45a323f53a10ff5f419daa5ba6442817eebc.zip |
feat(App): Add option to enable/disable spell checker
Diffstat (limited to 'src/i18n')
-rw-r--r-- | src/i18n/languages.js | 45 | ||||
-rw-r--r-- | src/i18n/locales/en-US.json | 3 | ||||
-rw-r--r-- | src/i18n/translations.js | 4 |
3 files changed, 49 insertions, 3 deletions
diff --git a/src/i18n/languages.js b/src/i18n/languages.js index 72d7b26c1..77bb5deae 100644 --- a/src/i18n/languages.js +++ b/src/i18n/languages.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = { | 1 | export const APP_LOCALES = { |
2 | 'en-US': 'English', | 2 | 'en-US': 'English', |
3 | 'pt-BR': 'Portuguese (Brazil)', | 3 | 'pt-BR': 'Portuguese (Brazil)', |
4 | 'el-GR': 'Ελληνικά (Greece)', | 4 | 'el-GR': 'Ελληνικά (Greece)', |
@@ -15,3 +15,46 @@ module.exports = { | |||
15 | 'zh-Hant': 'Chinese (Traditional)', | 15 | 'zh-Hant': 'Chinese (Traditional)', |
16 | 'nb-NO': 'Norsk', | 16 | 'nb-NO': 'Norsk', |
17 | }; | 17 | }; |
18 | |||
19 | export default APP_LOCALES; | ||
20 | |||
21 | // export const SPELLCHECKER_LOCALES = { | ||
22 | // af: 'Afrikaans', | ||
23 | // sq: 'Albanian', | ||
24 | // ar: 'Arabic', | ||
25 | // bg: 'Bulgarian', | ||
26 | // zh: 'Chinese', | ||
27 | // hr: 'Croatian', | ||
28 | // cs: 'Czech', | ||
29 | // da: 'Danish', | ||
30 | // nl: 'Dutch', | ||
31 | // en: 'English', | ||
32 | // 'en-AU': 'English (AU)', | ||
33 | // 'en-CA': 'English (CA)', | ||
34 | // 'en-GB': 'English (GB)', | ||
35 | // fi: 'Finnish', | ||
36 | // fr: 'French', | ||
37 | // ka: 'Georgian', | ||
38 | // de: 'German', | ||
39 | // el: 'Greek, Modern', | ||
40 | // hi: 'Hindi', | ||
41 | // hu: 'Hungarian', | ||
42 | // id: 'Indonesian', | ||
43 | // it: 'Italian', | ||
44 | // ja: 'Japanese', | ||
45 | // jv: 'Javanese', | ||
46 | // ko: 'Korean', | ||
47 | // lt: 'Lithuanian', | ||
48 | // lv: 'Latvian', | ||
49 | // ms: 'Malay', | ||
50 | // no: 'Norwegian', | ||
51 | // pl: 'Polish', | ||
52 | // pt: 'Portuguese', | ||
53 | // ro: 'Romanian, Moldavian, Moldovan', | ||
54 | // ru: 'Russian', | ||
55 | // sk: 'Slovak', | ||
56 | // es: 'Spanish', | ||
57 | // sv: 'Swedish', | ||
58 | // uk: 'Ukrainian', | ||
59 | // vi: 'Vietnamese', | ||
60 | // }; | ||
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index fd8ba0fef..e50386e79 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json | |||
@@ -132,6 +132,7 @@ | |||
132 | "settings.app.headlineLanguage": "Language", | 132 | "settings.app.headlineLanguage": "Language", |
133 | "settings.app.headlineUpdates": "Updates", | 133 | "settings.app.headlineUpdates": "Updates", |
134 | "settings.app.headlineAppearance": "Appearance", | 134 | "settings.app.headlineAppearance": "Appearance", |
135 | "settings.app.headlineAdvanced": "Advanced", | ||
135 | "settings.app.buttonSearchForUpdate": "Check for updates", | 136 | "settings.app.buttonSearchForUpdate": "Check for updates", |
136 | "settings.app.buttonInstallUpdate": "Restart & install update", | 137 | "settings.app.buttonInstallUpdate": "Restart & install update", |
137 | "settings.app.updateStatusSearching": "Is searching for update", | 138 | "settings.app.updateStatusSearching": "Is searching for update", |
@@ -143,9 +144,11 @@ | |||
143 | "settings.app.form.minimizeToSystemTray": "Minimize Franz to system tray", | 144 | "settings.app.form.minimizeToSystemTray": "Minimize Franz to system tray", |
144 | "settings.app.form.runInBackground": "Keep Franz in background when closing the window", | 145 | "settings.app.form.runInBackground": "Keep Franz in background when closing the window", |
145 | "settings.app.form.language": "Language", | 146 | "settings.app.form.language": "Language", |
147 | "settings.app.form.enableSpellchecking": "Enable spell checking", | ||
146 | "settings.app.form.showDisabledServices": "Display disabled services tabs", | 148 | "settings.app.form.showDisabledServices": "Display disabled services tabs", |
147 | "settings.app.form.beta": "Include beta versions", | 149 | "settings.app.form.beta": "Include beta versions", |
148 | "settings.app.currentVersion": "Current version:", | 150 | "settings.app.currentVersion": "Current version:", |
151 | "settings.app.restartRequired": "Changes require restart", | ||
149 | "settings.user.form.firstname": "Firstname", | 152 | "settings.user.form.firstname": "Firstname", |
150 | "settings.user.form.lastname": "Lastname", | 153 | "settings.user.form.lastname": "Lastname", |
151 | "settings.user.form.email": "Email", | 154 | "settings.user.form.email": "Email", |
diff --git a/src/i18n/translations.js b/src/i18n/translations.js index 492a6cc4e..161a172ba 100644 --- a/src/i18n/translations.js +++ b/src/i18n/translations.js | |||
@@ -1,7 +1,7 @@ | |||
1 | import languages from './languages'; | 1 | import { APP_LOCALES } from './languages'; |
2 | 2 | ||
3 | const translations = []; | 3 | const translations = []; |
4 | Object.keys(languages).forEach((key) => { | 4 | Object.keys(APP_LOCALES).forEach((key) => { |
5 | try { | 5 | try { |
6 | const translation = require(`./locales/${key}.json`); // eslint-disable-line | 6 | const translation = require(`./locales/${key}.json`); // eslint-disable-line |
7 | translations[key] = translation; | 7 | translations[key] = translation; |