From 77b5f1481e06443862c6fa31a10fe9196f628f39 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 13 Apr 2024 10:05:38 +0530 Subject: Add codespell support (config, GH action to detect new typos) + make it fix some typos (#1648) --- src/helpers/translation-helpers.ts | 2 +- src/helpers/update-helpers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helpers') 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( ): Promise<{ text: string; error: boolean }> { const errorText = // TODO: Need to support i18n - 'FERDIUM ERROR: An error occured. Please select less text to translate or try again later.'; + 'FERDIUM ERROR: An error occurred. Please select less text to translate or try again later.'; if (translatorEngine === 'Google') { 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({ connectionError: { id: 'settings.releasenotes.connectionError', defaultMessage: - 'An error occured when connecting to Github, please try again later.', + 'An error occurred when connecting to Github, please try again later.', }, connectionErrorPageMissing: { id: 'settings.releasenotes.connectionErrorPageMissing', defaultMessage: - 'An error occured when connecting to Github, the page you are looking for is missing.', + 'An error occurred when connecting to Github, the page you are looking for is missing.', }, }); -- cgit v1.2.3-70-g09d2