feat:Environment add locale

This commit is contained in:
pengfei.zhou
2021-07-06 17:35:56 +08:00
committed by osborn
parent 666998d3a6
commit 70bde4fba9
5 changed files with 42 additions and 13 deletions

8
doric-js/index.d.ts vendored
View File

@@ -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;

View File

@@ -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;

View File

@@ -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
}