Skip to content

Instantly share code, notes, and snippets.

@tkoki
Created October 8, 2013 07:11
Show Gist options
  • Save tkoki/6880798 to your computer and use it in GitHub Desktop.
Save tkoki/6880798 to your computer and use it in GitHub Desktop.
起動中の言語を取得する
NSArray *languages = [NSLocale preferredLanguages];
if ([[languages objectAtIndex:0] isEqualToString:@"ja"]) {
// 日本語での処理
} else {
// それ以外での処理
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment