Skip to content

Instantly share code, notes, and snippets.

@EvgenyMorozov
Created May 7, 2015 12:33
Show Gist options
  • Save EvgenyMorozov/67ece56b67343b843c11 to your computer and use it in GitHub Desktop.
Save EvgenyMorozov/67ece56b67343b843c11 to your computer and use it in GitHub Desktop.
Retrieve the locale that application is currently using (For the case, then the application doesn't support system locale).
NSString *localization = [NSBundle mainBundle].preferredLocalizations.firstObject;
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:localization];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment