mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
reinstate macOS 12 code
This commit is contained in:
parent
dc85ab87f7
commit
d01013d8b8
1 changed files with 4 additions and 4 deletions
|
|
@ -123,10 +123,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
}
|
||||
|
||||
func localizeString(_ key: String, comment: String = "") -> String {
|
||||
// if #available(macOS 12, *) {
|
||||
// return String(localized: String.LocalizationValue(key))
|
||||
// } else {
|
||||
if #available(macOS 12, *) {
|
||||
return String(localized: String.LocalizationValue(key))
|
||||
} else {
|
||||
return NSLocalizedString(key, comment: comment)
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue