Added category 'All' recipes

This commit is contained in:
Vicnet
2023-10-22 20:28:51 +02:00
parent 05c30a2cff
commit 8f32946e27
17 changed files with 574 additions and 243 deletions

View File

@@ -0,0 +1,31 @@
//
// 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"
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"
}
}
static let allValues = [DEVICE, EN, DE, ES]
}