Ariver
2026-05-06 e64cdcb8e172e212bd38b8bd5cec06befa337f7c
Apptag/L10n.swift
@@ -4,6 +4,7 @@
enum L10n {
    static var current: [String: String] = [:]
    private(set) static var currentCode = "en"
    /// Call once at startup to load the saved or system language.
    static func setup() {
@@ -33,7 +34,6 @@
            forResource: code, withExtension: "json",
            subdirectory: "Localization"
        ) else {
            // Fallback to bundled English
            if code != "en" { load("en") }
            return
        }
@@ -41,6 +41,7 @@
              let dict = try? JSONSerialization.jsonObject(with: data) as? [String: String]
        else { return }
        current = dict
        currentCode = code
    }
    private static func fallbackCode() -> String {