11import { vsprintf } from "sprintf-js" ;
2+ import { android as _android } from "tns-core-modules/application" ;
3+ import { getString , setString } from "tns-core-modules/application-settings" ;
4+ import { isAndroid } from "tns-core-modules/platform" ;
25import * as utils from "tns-core-modules/utils/utils" ;
3- import { getString , setString } from 'tns-core-modules/application-settings' ;
4- import { isAndroid } from 'tns-core-modules/platform' ;
5- import { android as _android } from 'tns-core-modules/application' ;
66
77import { encodeKey } from "./resource" ;
88
@@ -30,7 +30,7 @@ export function localize(key: string, ...args: string[]): string {
3030}
3131
3232export function androidLaunchEventLocalizationHandler ( ) {
33- const lang = getString ( ' __app__language__' , 'none' ) ;
33+ const lang = getString ( " __app__language__" , 'none' ) ;
3434 if ( lang !== 'none' && isAndroid ) {
3535 const locale = new java . util . Locale ( lang ) ;
3636 java . util . Locale . setDefault ( locale ) ;
@@ -44,7 +44,6 @@ export function androidLaunchEventLocalizationHandler() {
4444}
4545
4646export function overrideLocale ( locale : string ) : boolean {
47- setString ( '__app__language__' , locale . substring ( 0 , 2 ) ) ;
48-
47+ setString ( "__app__language__" , locale . substring ( 0 , 2 ) ) ;
4948 return true ;
5049}
0 commit comments