Skip to content

Commit

Permalink
fix: correct typos in localization keys, comments, and button labels (#…
Browse files Browse the repository at this point in the history
…500)

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.
  • Loading branch information
milad-emami authored Jul 25, 2024
1 parent 9c18b30 commit c291b50
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Core/Core/View/Base/AlertView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,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: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ 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)
.padding(.horizontal)
.accessibilityIdentifier("progress_bar")
} else {
StyledButton(
ProfileLocalization.DeleteAccount.comfirm,
ProfileLocalization.DeleteAccount.confirm,
action: {
Task {
try await viewModel.deleteAccount(password: viewModel.password)
Expand Down
6 changes: 3 additions & 3 deletions Profile/Profile/SwiftGen/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,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.
Expand Down Expand Up @@ -236,8 +236,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 Options {
/// Show relative dates like “Tomorrow” and “Yesterday”
Expand Down
4 changes: 2 additions & 2 deletions Profile/Profile/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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!";
Expand Down Expand Up @@ -57,7 +57,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.";

Expand Down
2 changes: 1 addition & 1 deletion Profile/Profile/uk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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" = "Пароль неправильний. Будь ласка спробуйте ще раз.";

Expand Down

0 comments on commit c291b50

Please sign in to comment.