update localtext refs

This commit is contained in:
Satindar Dhillon 2023-01-24 13:51:25 -08:00
parent 69f4738aee
commit 7bd1d882d3
3 changed files with 5 additions and 10 deletions

View file

@ -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
}
}
}

View file

@ -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")

View file

@ -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."
}