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 ef4d85d6ca
commit ed3a1b48e7
3 changed files with 3 additions and 0 deletions

View file

@ -390,6 +390,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
}
[NSBundle mxk_setLanguage:language];
[NSBundle mxk_setFallbackLanguage:@"en"];
UIApplication.sharedApplication.accessibilityLanguage = language;
if (BuildSettings.disableRightToLeftLayout)
{

View file

@ -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;

View file

@ -0,0 +1 @@
Make sure to use the chosen language for the VoiceOver voice too.