add fixture-backed admin and ios scaffold

This commit is contained in:
2026-04-09 15:30:00 +02:00
parent a1dcebaec1
commit 87f152a232
33 changed files with 927 additions and 24 deletions
@@ -0,0 +1,18 @@
import Foundation
final class LocalizationStore {
private let bundle: Bundle
init(bundle: Bundle = .main) {
self.bundle = bundle
}
func string(for key: String, locale: String) -> String {
guard let path = bundle.path(forResource: locale, ofType: "lproj"),
let localizedBundle = Bundle(path: path) else {
return bundle.localizedString(forKey: key, value: nil, table: nil)
}
return localizedBundle.localizedString(forKey: key, value: nil, table: nil)
}
}