mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Fix the transpile
This commit is contained in:
@ -86,8 +86,9 @@ export class device implements definition.device {
|
|||||||
static get language(): string {
|
static get language(): string {
|
||||||
if (!device._language) {
|
if (!device._language) {
|
||||||
var context = application.android.context;
|
var context = application.android.context;
|
||||||
var locale = context.getResources().getConfiguration().locale;
|
// var locale = context.getResources().getConfiguration().getLocale();
|
||||||
device._language = locale.getDefault().toString();
|
|
||||||
|
device._language = java.util.Locale.getDefault().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
return device._language;
|
return device._language;
|
||||||
|
Reference in New Issue
Block a user