mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
320 B
Objective-C
18 lines
320 B
Objective-C
// +build ios
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
const char *getLocale()
|
|
{
|
|
NSString *locale = [[NSLocale preferredLanguages] firstObject];
|
|
|
|
return [locale UTF8String];
|
|
}
|
|
|
|
const char *getLocales()
|
|
{
|
|
NSString *locales = [[NSLocale preferredLanguages] componentsJoinedByString:@","];
|
|
|
|
return [locales UTF8String];
|
|
}
|