Skip to content

Instantly share code, notes, and snippets.

@shannoga
Created May 30, 2011 12:36
Show Gist options
  • Save shannoga/998848 to your computer and use it in GitHub Desktop.
Save shannoga/998848 to your computer and use it in GitHub Desktop.
Detect user languish
+(NSString*)currentLang{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defaults objectForKey:@"AppleLanguages"];
return [languages objectAtIndex:0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment