Top "Nslocale" questions

Locales encapsulate information about linguistic, cultural, and technological conventions and standards.

Localization: How to get the current user language?

I'm about to localize an iPhone application. I want to use a different URL when the user's language (iOS system …

iphone localization nslocale
NSLocale Swift 3

How do I get the currency symbol in Swift 3? public class Currency: NSObject { public let name: String public let code: …

swift currency swift3 nslocale
How to get system locale and system language in cocoa

I want to get the system default language and system locale. I have tried the following code snippet to get …

objective-c macos cocoa nslocale
How can I change the locale for my app programmatically via Swift?

I have a language selection control in my application, and I want to be able to set the locale accordingly …

swift nslocale
How to get NSNumberFormatter currency style from ISOCurrencyCodes?

If I were to have EUR, or USD (both ISO currency codes), how could I make my NSNumberFormatter to properly …

ios objective-c nsnumberformatter nslocale
Get Currency Symbol based on Country code or Country name using NSLocale

I want to display Currency Symbol based on Country name or country code using NSLocale I have all the country …

ios objective-c swift currency nslocale
NSLocaleCountryCode returns nil

I have a bugreport that states a crash in the following line, where client is an instance of NSMutableDictionary [client …

ios foundation country nslocale
NSLocale preferredLanguages objectAtIndex:0 always return "en"

Simulator's language already changed to Japanese, why [[NSLocale preferredLanguages] objectAtIndex:0] always return "en"? Neither preferred language nor region is related …

iphone nsuserdefaults region nslocale ios8.1
xcode 6.1 iOS 8.1 NSLocale displayNameForKey NSLocaleIdentifier return nil

- (NSString *)countryNameByCode:(NSString*)countryCode { NSString *identifier = [NSLocale localeIdentifierFromComponents:@{NSLocaleCountryCode: countryCode}]; NSString *countryName = [[NSLocale currentLocale] displayNameForKey:NSLocaleIdentifier value:identifier]; return …

ios objective-c nslocale