feat:Environment add locale
This commit is contained in:
8
doric-js/index.d.ts
vendored
8
doric-js/index.d.ts
vendored
@@ -60,6 +60,14 @@ declare module 'doric/lib/src/runtime/global' {
|
||||
* ex: iPhone12,5 or pixel 3
|
||||
*/
|
||||
deviceModel: string;
|
||||
/**
|
||||
* The language code for current locale
|
||||
*/
|
||||
localeLanguage: string;
|
||||
/**
|
||||
* The country/region code for current locale
|
||||
*/
|
||||
localeCountry: string;
|
||||
[index: string]: number | string | boolean | object | undefined;
|
||||
};
|
||||
function Entry(constructor: ClassType<Panel>): void;
|
||||
|
8
doric-js/lib/src/runtime/global.d.ts
vendored
8
doric-js/lib/src/runtime/global.d.ts
vendored
@@ -48,6 +48,14 @@ declare global {
|
||||
* ex: iPhone12,5 or pixel 3
|
||||
*/
|
||||
deviceModel: string;
|
||||
/**
|
||||
* The language code for current locale
|
||||
*/
|
||||
localeLanguage: string;
|
||||
/**
|
||||
* The country/region code for current locale
|
||||
*/
|
||||
localeCountry: string;
|
||||
[index: string]: number | string | boolean | object | undefined;
|
||||
};
|
||||
function Entry(constructor: ClassType<Panel>): void;
|
||||
|
@@ -75,6 +75,17 @@ declare global {
|
||||
* ex: iPhone12,5 or pixel 3
|
||||
*/
|
||||
deviceModel: string,
|
||||
|
||||
/**
|
||||
* The language code for current locale
|
||||
*/
|
||||
localeLanguage: string
|
||||
|
||||
/**
|
||||
* The country/region code for current locale
|
||||
*/
|
||||
localeCountry: string
|
||||
|
||||
[index: string]: number | string | boolean | object | undefined
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user