mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update localtext refs
This commit is contained in:
parent
69f4738aee
commit
7bd1d882d3
3 changed files with 5 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue