New Recipe Edit View
This commit is contained in:
34
Nextcloud Cookbook iOS Client/Util/SupportedLanguage.swift
Normal file
34
Nextcloud Cookbook iOS Client/Util/SupportedLanguage.swift
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// SupportedLanguage.swift
|
||||
// Nextcloud Cookbook iOS Client
|
||||
//
|
||||
// Created by Vincent Meilinger on 18.10.23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
enum SupportedLanguage: String, Codable {
|
||||
case DEVICE = "device",
|
||||
EN = "en",
|
||||
DE = "de",
|
||||
ES = "es",
|
||||
FR = "fr"
|
||||
|
||||
func descriptor() -> String {
|
||||
switch self {
|
||||
case .DEVICE:
|
||||
return String(localized: "Same as Device")
|
||||
case .EN:
|
||||
return "English"
|
||||
case .DE:
|
||||
return "Deutsch"
|
||||
case .ES:
|
||||
return "Español"
|
||||
case .FR:
|
||||
return "Français"
|
||||
}
|
||||
}
|
||||
|
||||
static let allValues = [DEVICE, EN, DE, ES, FR]
|
||||
}
|
||||
Reference in New Issue
Block a user