Skip to content

CodexBar 是一个 macOS 菜单栏应用,用于查看本机 Codex 账号状态、额度、Token 用量、详细统计信息

fix: 让应用内更新日志跟随界面语言

Bob6851c559d3ce
diff --git a/CodexBar/Views/Settings/AppSettingsView.swift b/CodexBar/Views/Settings/AppSettingsView.swift
index 8b0c527..e67ff85 100644
--- a/CodexBar/Views/Settings/AppSettingsView.swift
+++ b/CodexBar/Views/Settings/AppSettingsView.swift
@@ -208,6 +208,8 @@ private extension AppSettingsView {
static let releaseNotesURL: URL = {
var components = URLComponents(string: "https://codexbar.zabrian.app/notes")!
+ let language = Bundle.main.preferredLocalizations.first == "zh-Hans" ? "zh-CN" : "en"
+ components.queryItems = [URLQueryItem(name: "lang", value: language)]
components.fragment = Bundle.main.shortVersionString
return components.url!
}()