From 6a6679fda2f6c95d7796ab29cd30847768e17a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrija=20Ostojic=CC=81?= Date: Fri, 10 Oct 2025 13:18:07 +0200 Subject: [PATCH 1/2] Add conditional compilation for setting acc language --- SwiftI18n/Classes/Main/I18nManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SwiftI18n/Classes/Main/I18nManager.swift b/SwiftI18n/Classes/Main/I18nManager.swift index 4656eb0..651ead5 100644 --- a/SwiftI18n/Classes/Main/I18nManager.swift +++ b/SwiftI18n/Classes/Main/I18nManager.swift @@ -48,8 +48,10 @@ public class I18nManager { _language = newValue UserDefaults.standard.set(newValue, forKey: .language) UserDefaults.standard.set([newValue], forKey: .appleLanguages) - UIApplication.shared.accessibilityLanguage = newValue NotificationCenter.default.post(name: .loc_LanguageDidChangeNotification, object: nil) + #if APP_EXTENSION + UIApplication.shared.accessibilityLanguage = newValue + #endif } get { if let language = _language { From 0f81d5e1ea8b1c32a6d607466f6da7730271a28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrija=20Ostojic=CC=81?= Date: Fri, 10 Oct 2025 14:19:46 +0200 Subject: [PATCH 2/2] Version bump --- SwiftI18n.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftI18n.podspec b/SwiftI18n.podspec index 6bd4c42..fde7427 100644 --- a/SwiftI18n.podspec +++ b/SwiftI18n.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'SwiftI18n' - s.version = '2.0.0' + s.version = '2.0.1' s.summary = 'I18n library for Swift' s.homepage = 'https://github.com/infinum/ios-swiftI18n' s.license = { :type => 'MIT', :file => 'LICENSE' }