For me, the decision did not work if the language was not supported - the application simply returned to English and, since the IsSupported line was contained in the English line file, it returned "YES".
I had to use this solution
NSString* currentLanguage = [NSLocale preferredLanguages][0]; NSArray* supportedLocalizations = [[NSBundle mainBundle] localizations]; if ([supportedLocalizations containsObject:currentLanguage]) { isLocalizedToCurrentLanguage = YES; } else { isLocalizedToCurrentLanguage = NO; }
source share