diff --git a/apple/OmnivoreKit/Sources/App/AppExtensions/Share/ShareExtensionViewModel.swift b/apple/OmnivoreKit/Sources/App/AppExtensions/Share/ShareExtensionViewModel.swift index d97021a33..1a9f49f61 100644 --- a/apple/OmnivoreKit/Sources/App/AppExtensions/Share/ShareExtensionViewModel.swift +++ b/apple/OmnivoreKit/Sources/App/AppExtensions/Share/ShareExtensionViewModel.swift @@ -225,9 +225,9 @@ private extension SaveArticleError { case .unauthorized: return LocalText.extensionAppUnauthorized case .network: - return LocalText.networkError + return LocalText.errorNetwork case .badData, .unknown: - return LocalText.genericError + return LocalText.errorGeneric } } } diff --git a/apple/OmnivoreKit/Sources/Views/LocalText.swift b/apple/OmnivoreKit/Sources/Views/LocalText.swift index 619cc63e3..53126b10c 100644 --- a/apple/OmnivoreKit/Sources/Views/LocalText.swift +++ b/apple/OmnivoreKit/Sources/Views/LocalText.swift @@ -5,11 +5,6 @@ public enum LocalText { NSLocalizedString(key, bundle: .module, comment: comment ?? "no comment provided by developer") } - // Replace these three - public static let networkError = localText(key: "errorNetwork") - public static let genericError = localText(key: "errorGeneric") - public static let invalidCredsLoginError = localText(key: "loginErrorInvalidCreds") - // share extension public static let shareExtensionCreateLabel = localText(key: "shareExtensionCreateLabel") public static let shareExtensionMoreActions = localText(key: "shareExtensionMoreActions") diff --git a/apple/OmnivoreKit/Sources/Views/RegistrationViews/LoginErrorMessageView.swift b/apple/OmnivoreKit/Sources/Views/RegistrationViews/LoginErrorMessageView.swift index fcb06e2fb..66f89d66b 100644 --- a/apple/OmnivoreKit/Sources/Views/RegistrationViews/LoginErrorMessageView.swift +++ b/apple/OmnivoreKit/Sources/Views/RegistrationViews/LoginErrorMessageView.swift @@ -20,11 +20,11 @@ private extension LoginError { var message: String { switch self { case .unauthorized: - return LocalText.invalidCredsLoginError + return LocalText.loginErrorInvalidCreds case .network: - return LocalText.networkError + return LocalText.errorNetwork case .unknown: - return LocalText.genericError + return LocalText.errorGeneric case .pendingEmailVerification: return "Please check your email for a verification message." }