mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
Add zh-CN/en-US/ja-JP across navigation, HTTP tabs, settings, and main tool actions; menu bar tray, close behavior, and GitHub update checks; Electron/Java SQLite and vault folder merge; document parity and 0.8 verification. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
305 B
Swift
14 lines
305 B
Swift
import SwiftUI
|
|
import MooToolNextCore
|
|
|
|
private struct AppLanguageKey: EnvironmentKey {
|
|
static let defaultValue = AppLanguage.zhCN
|
|
}
|
|
|
|
extension EnvironmentValues {
|
|
var appLanguage: AppLanguage {
|
|
get { self[AppLanguageKey.self] }
|
|
set { self[AppLanguageKey.self] = newValue }
|
|
}
|
|
}
|