mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
Remove unneeded localization
This commit is contained in:
parent
2ca0dfe251
commit
96fdc6c837
2 changed files with 1 additions and 11 deletions
|
@ -5,7 +5,6 @@
|
|||
"add-identity.instance-url" = "Instance URL";
|
||||
"add-identity.log-in" = "Log in";
|
||||
"add-identity.browse-anonymously" = "Browse anonymously";
|
||||
"oauth.error.code-not-found" = "OAuth error: code not found";
|
||||
"secondary-navigation.manage-accounts" = "Manage Accounts";
|
||||
"secondary-navigation.lists" = "Lists";
|
||||
"secondary-navigation.preferences" = "Preferences";
|
||||
|
|
|
@ -82,7 +82,7 @@ private extension AuthenticationService {
|
|||
static let website = URL(string: "https://metabolist.com/metatext")!
|
||||
}
|
||||
|
||||
enum OAuthError {
|
||||
enum OAuthError: Error {
|
||||
case codeNotFound
|
||||
}
|
||||
|
||||
|
@ -102,12 +102,3 @@ private extension AuthenticationService {
|
|||
return authorizationURLComponents.url
|
||||
}
|
||||
}
|
||||
|
||||
extension AuthenticationService.OAuthError: LocalizedError {
|
||||
var errorDescription: String? {
|
||||
switch self {
|
||||
case .codeNotFound:
|
||||
return NSLocalizedString("oauth.error.code-not-found", comment: "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue