Harry
Harry

Reputation: 119

Will my app get rejected by apple if i use the following custom localization?

(Hint: I am just trying to make German as the default language when German or any other language is selected. Incase of French, it will show app in french language but for any othe language , it should show German.)

    [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"AppleLanguages"];
    [NSUserDefaults resetStandardUserDefaults];
    NSLog(@"%@",[NSLocale preferredLanguages]);

    NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];

    if ([language isEqualToString:@"fr"])
    {
        NSArray *langOrder = [NSArray arrayWithObjects:@"fr", nil];
        [[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];
    }
    else
    {
        NSArray *langOrder = [NSArray arrayWithObjects:@"de", nil];
        [[NSUserDefaults standardUserDefaults] setObject:langOrder forKey:@"AppleLanguages"];
    }

Upvotes: 2

Views: 531

Answers (1)

iYoung
iYoung

Reputation: 3622

No, apple will not reject your app. You can also read the rules for rejection of app from the following link: https://developer.apple.com/app-store/review/rejections/

Upvotes: 2

Related Questions