region property added;chnage in how to get the language in android

This commit is contained in:
Neli Chakarova
2015-11-18 15:41:20 +02:00
parent 50dccaecdb
commit 1e0c82a8d4
2 changed files with 19 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ export class device implements definition.device {
private static _sdkVersion: string;
private static _deviceType: string;
private static _language: string;
private static _region: string;
static get manufacturer(): string {
return "Apple";
@@ -84,6 +85,14 @@ export class device implements definition.device {
return device._language;
}
static get region(): string {
if(!device._region) {
device._region = NSLocale.currentLocale().objectForKey(NSLocaleCountryCode);
}
return device._region;
}
}
var mainScreen: MainScreen;