Revert "Update serbian translations"

This commit is contained in:
Garth Vander Houwen 2025-05-20 22:33:17 -07:00 committed by GitHub
parent 27aeb62731
commit 2f76e88ea5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 261 deletions

View file

@ -19,11 +19,11 @@ struct UserDefault<T: Decodable> {
var wrappedValue: T {
get {
if defaultValue is any RawRepresentable {
if defaultValue as? any RawRepresentable != nil {
let storedValue = UserDefaults.standard.object(forKey: key.rawValue)
guard let storedValue,
let jsonString = (storedValue is String) ? "\"\(storedValue)\"" : "\(storedValue)",
let jsonString = (storedValue as? String != nil) ? "\"\(storedValue)\"" : "\(storedValue)",
let data = jsonString.data(using: .utf8),
let value = (try? JSONDecoder().decode(T.self, from: data)) else { return defaultValue }