2024-11-05 17:55:57 +00:00
|
|
|
//
|
|
|
|
// AppFeature+L10n.swift
|
|
|
|
// Passepartout
|
|
|
|
//
|
|
|
|
// Created by Davide De Rosa on 11/5/24.
|
|
|
|
// Copyright (c) 2024 Davide De Rosa. All rights reserved.
|
|
|
|
//
|
|
|
|
// https://github.com/passepartoutvpn
|
|
|
|
//
|
|
|
|
// This file is part of Passepartout.
|
|
|
|
//
|
|
|
|
// Passepartout is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Passepartout is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Passepartout. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//
|
|
|
|
|
|
|
|
import CommonLibrary
|
|
|
|
import CommonUtils
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
extension AppFeature: LocalizableEntity {
|
|
|
|
public var localizedDescription: String {
|
2024-11-07 17:27:36 +00:00
|
|
|
let V = Strings.Features.self
|
2024-11-05 17:55:57 +00:00
|
|
|
switch self {
|
|
|
|
case .appleTV:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.appleTV(Strings.Unlocalized.appleTV)
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .dns:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.dns(Strings.Unlocalized.dns)
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .httpProxy:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.httpProxy(Strings.Unlocalized.httpProxy)
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .interactiveLogin:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.interactiveLogin
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .onDemand:
|
2024-11-18 16:43:01 +00:00
|
|
|
return V.onDemand
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .providers:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.providers
|
2024-11-05 17:55:57 +00:00
|
|
|
|
|
|
|
case .routing:
|
2024-11-07 17:27:36 +00:00
|
|
|
return V.routing(Strings.Global.routing)
|
2024-11-09 14:20:59 +00:00
|
|
|
|
|
|
|
case .sharing:
|
|
|
|
return V.sharing(Strings.Unlocalized.iCloud)
|
2024-11-05 17:55:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-11-18 16:43:01 +00:00
|
|
|
|
|
|
|
extension AppFeature: Comparable {
|
|
|
|
public static func < (lhs: Self, rhs: Self) -> Bool {
|
|
|
|
lhs.localizedDescription.lowercased() < rhs.localizedDescription.lowercased()
|
|
|
|
}
|
|
|
|
}
|