From d01013d8b8d2b2b128ccab6c3cdbb87d225a441f Mon Sep 17 00:00:00 2001 From: Alex Maslov Date: Thu, 21 Apr 2022 15:17:41 -0400 Subject: [PATCH] reinstate macOS 12 code --- Xcodes/XcodesApp.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Xcodes/XcodesApp.swift b/Xcodes/XcodesApp.swift index 7340ea2..cfdb3af 100644 --- a/Xcodes/XcodesApp.swift +++ b/Xcodes/XcodesApp.swift @@ -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) -// } + } }