Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SwiftI18n.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
4 changes: 3 additions & 1 deletion SwiftI18n/Classes/Main/I18nManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down