I finally fixed it. I hope that in the future this will help someone who has the same problem.
NSString *preferredLanguage = [[NSLocale preferredLanguages] objectAtIndex:0];
NSLog(@"%@", preferredLanguage);
if(IS_OS_9_BEFORE) {
if ([preferredLanguage isEqualToString:@"pt"]) {
[[BundleLocalization sharedInstance] setLanguage:@"pt-BR"];
}
}
and don't forget to import the following classes from git.
https://github.com/cmaftuleac/BundleLocalization