From 3f34991bf77b0282a20d1131b98d5fb1ce97e8b3 Mon Sep 17 00:00:00 2001 From: milad-emami Date: Sat, 13 Jul 2024 17:35:29 +0330 Subject: [PATCH] fix: correct typos in localization keys, comments, and button labels Corrected spelling mistakes in various localization keys, comments, and button labels. - Changed 'Comfirm' to 'Confirm' in alert titles and confirmations - Updated localization keys: - 'LOGOUT_ALERT.TITLE' - 'DELETE_ACCOUNT.CONFIRM' - Fixed spelling in StyledButton calls and localization fallback text - Updated the Ukrainian translation for DELETE_ACCOUNT.CONFIRM - Corrected comments in the codebase These changes improve clarity and maintain consistency across the codebase. --- Core/Core/View/Base/AlertView.swift | 2 +- .../Presentation/DeleteAccount/DeleteAccountView.swift | 4 ++-- Profile/Profile/SwiftGen/Strings.swift | 6 +++--- Profile/Profile/en.lproj/Localizable.strings | 4 ++-- Profile/Profile/uk.lproj/Localizable.strings | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Core/Core/View/Base/AlertView.swift b/Core/Core/View/Base/AlertView.swift index 388c70c54..a40ea2f10 100644 --- a/Core/Core/View/Base/AlertView.swift +++ b/Core/Core/View/Base/AlertView.swift @@ -488,7 +488,7 @@ struct AlertView_Previews: PreviewProvider { .previewLayout(.sizeThatFits) .background(Color.gray) - AlertView(alertTitle: "Comfirm log out", + AlertView(alertTitle: "Confirm log out", alertMessage: "Are you sure you want to log out?", positiveAction: "Yes", onCloseTapped: {}, diff --git a/Profile/Profile/Presentation/DeleteAccount/DeleteAccountView.swift b/Profile/Profile/Presentation/DeleteAccount/DeleteAccountView.swift index c2f5dc7fb..be78fe722 100644 --- a/Profile/Profile/Presentation/DeleteAccount/DeleteAccountView.swift +++ b/Profile/Profile/Presentation/DeleteAccount/DeleteAccountView.swift @@ -99,7 +99,7 @@ public struct DeleteAccountView: View { maxWidth: .infinity, alignment: .topLeading) - // MARK: Comfirmation button + // MARK: Confirmation button if viewModel.isShowProgress { ProgressBar(size: 40, lineWidth: 8) .padding(.top, 20) @@ -107,7 +107,7 @@ public struct DeleteAccountView: View { .accessibilityIdentifier("progressbar") } else { StyledButton( - ProfileLocalization.DeleteAccount.comfirm, + ProfileLocalization.DeleteAccount.confirm, action: { Task { try await viewModel.deleteAccount(password: viewModel.password) diff --git a/Profile/Profile/SwiftGen/Strings.swift b/Profile/Profile/SwiftGen/Strings.swift index d1adacf55..3051c75cf 100644 --- a/Profile/Profile/SwiftGen/Strings.swift +++ b/Profile/Profile/SwiftGen/Strings.swift @@ -55,7 +55,7 @@ public enum ProfileLocalization { /// Back to profile public static let backToProfile = ProfileLocalization.tr("Localizable", "DELETE_ACCOUNT.BACK_TO_PROFILE", fallback: "Back to profile") /// Yes, delete account - public static let comfirm = ProfileLocalization.tr("Localizable", "DELETE_ACCOUNT.COMFIRM", fallback: "Yes, delete account") + public static let confirm = ProfileLocalization.tr("Localizable", "DELETE_ACCOUNT.CONFIRM", fallback: "Yes, delete account") /// To confirm this action, please enter your account password. public static let description = ProfileLocalization.tr("Localizable", "DELETE_ACCOUNT.DESCRIPTION", fallback: "To confirm this action, please enter your account password.") /// The password is incorrect. Please try again. @@ -110,8 +110,8 @@ public enum ProfileLocalization { public enum LogoutAlert { /// Are you sure you want to log out? public static let text = ProfileLocalization.tr("Localizable", "LOGOUT_ALERT.TEXT", fallback: "Are you sure you want to log out?") - /// Comfirm log out - public static let title = ProfileLocalization.tr("Localizable", "LOGOUT_ALERT.TITLE", fallback: "Comfirm log out") + /// Confirm log out + public static let title = ProfileLocalization.tr("Localizable", "LOGOUT_ALERT.TITLE", fallback: "Confirm log out") } public enum Settings { /// Lower data usage diff --git a/Profile/Profile/en.lproj/Localizable.strings b/Profile/Profile/en.lproj/Localizable.strings index df2a437f8..e0fb03dd1 100644 --- a/Profile/Profile/en.lproj/Localizable.strings +++ b/Profile/Profile/en.lproj/Localizable.strings @@ -26,7 +26,7 @@ "FULL_PROFILE" = "full profile"; "LIMITED_PROFILE" = "limited profile"; -"LOGOUT_ALERT.TITLE" = "Comfirm log out"; +"LOGOUT_ALERT.TITLE" = "Confirm log out"; "LOGOUT_ALERT.TEXT" = "Are you sure you want to log out?"; "DELETE_ALERT.TITLE" = "Warning!"; @@ -55,7 +55,7 @@ "DELETE_ACCOUNT.DESCRIPTION" = "To confirm this action, please enter your account password."; "DELETE_ACCOUNT.PASSWORD" = "Password"; "DELETE_ACCOUNT.PASSWORD_DESCRIPTION" = "Enter password"; -"DELETE_ACCOUNT.COMFIRM" = "Yes, delete account"; +"DELETE_ACCOUNT.CONFIRM" = "Yes, delete account"; "DELETE_ACCOUNT.BACK_TO_PROFILE" = "Back to profile"; "DELETE_ACCOUNT.INCORRECT_PASSWORD" = "The password is incorrect. Please try again."; diff --git a/Profile/Profile/uk.lproj/Localizable.strings b/Profile/Profile/uk.lproj/Localizable.strings index f0e4d0503..b0108f044 100644 --- a/Profile/Profile/uk.lproj/Localizable.strings +++ b/Profile/Profile/uk.lproj/Localizable.strings @@ -54,7 +54,7 @@ "DELETE_ACCOUNT.DESCRIPTION" = "Для підтвердження цієї дії необхідно ввести пароль свого облікового запису."; "DELETE_ACCOUNT.PASSWORD" = "Пароль"; "DELETE_ACCOUNT.PASSWORD_DESCRIPTION" = "Введіть пароль"; -"DELETE_ACCOUNT.COMFIRM" = "Так, видалити акаунт"; +"DELETE_ACCOUNT.CONFIRM" = "Так, видалити акаунт"; "DELETE_ACCOUNT.BACK_TO_PROFILE" = "Повернутись до профілю"; "DELETE_ACCOUNT.INCORRECT_PASSWORD" = "Пароль неправильний. Будь ласка спробуйте ще раз.";