diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2024-04-13 10:05:38 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-04-13 10:05:38 +0530 |
commit | 77b5f1481e06443862c6fa31a10fe9196f628f39 (patch) | |
tree | b635f65d87a2dfdc1d9873d15db870443a37b3f0 /src/helpers | |
parent | Upgrade electron to '29.3.0' and some other deps (diff) | |
download | ferdium-app-77b5f1481e06443862c6fa31a10fe9196f628f39.tar.gz ferdium-app-77b5f1481e06443862c6fa31a10fe9196f628f39.tar.zst ferdium-app-77b5f1481e06443862c6fa31a10fe9196f628f39.zip |
Add codespell support (config, GH action to detect new typos) + make it fix some typos (#1648)
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/translation-helpers.ts | 2 | ||||
-rw-r--r-- | src/helpers/update-helpers.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/translation-helpers.ts b/src/helpers/translation-helpers.ts index 2e8f6b260..105a0ccfc 100644 --- a/src/helpers/translation-helpers.ts +++ b/src/helpers/translation-helpers.ts | |||
@@ -8,7 +8,7 @@ export async function translateTo( | |||
8 | ): Promise<{ text: string; error: boolean }> { | 8 | ): Promise<{ text: string; error: boolean }> { |
9 | const errorText = | 9 | const errorText = |
10 | // TODO: Need to support i18n | 10 | // TODO: Need to support i18n |
11 | 'FERDIUM ERROR: An error occured. Please select less text to translate or try again later.'; | 11 | 'FERDIUM ERROR: An error occurred. Please select less text to translate or try again later.'; |
12 | 12 | ||
13 | if (translatorEngine === 'Google') { | 13 | if (translatorEngine === 'Google') { |
14 | const translationResult = await translateGoogle(text, { | 14 | const translationResult = await translateGoogle(text, { |
diff --git a/src/helpers/update-helpers.ts b/src/helpers/update-helpers.ts index 3e548c69b..a6a2162a7 100644 --- a/src/helpers/update-helpers.ts +++ b/src/helpers/update-helpers.ts | |||
@@ -29,12 +29,12 @@ const messages = defineMessages({ | |||
29 | connectionError: { | 29 | connectionError: { |
30 | id: 'settings.releasenotes.connectionError', | 30 | id: 'settings.releasenotes.connectionError', |
31 | defaultMessage: | 31 | defaultMessage: |
32 | 'An error occured when connecting to Github, please try again later.', | 32 | 'An error occurred when connecting to Github, please try again later.', |
33 | }, | 33 | }, |
34 | connectionErrorPageMissing: { | 34 | connectionErrorPageMissing: { |
35 | id: 'settings.releasenotes.connectionErrorPageMissing', | 35 | id: 'settings.releasenotes.connectionErrorPageMissing', |
36 | defaultMessage: | 36 | defaultMessage: |
37 | 'An error occured when connecting to Github, the page you are looking for is missing.', | 37 | 'An error occurred when connecting to Github, the page you are looking for is missing.', |
38 | }, | 38 | }, |
39 | }); | 39 | }); |
40 | 40 | ||