Use the app's language for accessibility.

This commit is contained in:
Doug
2023-05-09 17:05:27 +01:00
committed by Doug
parent f0c9d85880
commit 7675da88c4
3 changed files with 3 additions and 0 deletions
@@ -390,6 +390,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
}
[NSBundle mxk_setLanguage:language];
[NSBundle mxk_setFallbackLanguage:@"en"];
UIApplication.sharedApplication.accessibilityLanguage = language;
if (BuildSettings.disableRightToLeftLayout)
{
@@ -4158,6 +4158,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
|| (language == nil && [NSBundle mxk_language]))
{
[NSBundle mxk_setLanguage:language];
UIApplication.sharedApplication.accessibilityLanguage = language;
// Store user settings
NSUserDefaults *sharedUserDefaults = [MXKAppSettings standardAppSettings].sharedUserDefaults;