mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Revert "Update serbian translations"
This commit is contained in:
parent
27aeb62731
commit
2f76e88ea5
6 changed files with 12 additions and 261 deletions
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue