From 6ec832e63368345e1d2ba99e68dfad8ce2a4fc29 Mon Sep 17 00:00:00 2001
From: Ariver <ar@MacBook-Air.local>
Date: Sun, 10 May 2026 19:28:32 +0800
Subject: [PATCH] Fix overlay visibility in fullscreen spaces
---
Apptag/L10n.swift | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Apptag/L10n.swift b/Apptag/L10n.swift
index be24145..9d6ac8b 100644
--- a/Apptag/L10n.swift
+++ b/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 {
--
Gitblit v1.9.3