fix(basic.gblib): Fix in WEEKDAY culture always in English.
This commit is contained in:
parent
87d91d71f5
commit
45d0bf3a85
1 changed files with 3 additions and 3 deletions
|
@ -125,10 +125,10 @@ export class DialogKeywords {
|
|||
public getContentLocaleWithCulture(contentLocale) {
|
||||
switch (contentLocale) {
|
||||
case 'pt':
|
||||
return 'pt-br';
|
||||
return 'pt-BR';
|
||||
|
||||
case 'en':
|
||||
return 'en-us';
|
||||
return 'en-US';
|
||||
|
||||
default:
|
||||
return 'en-us';
|
||||
|
@ -151,7 +151,7 @@ export class DialogKeywords {
|
|||
);
|
||||
|
||||
let dt = SystemKeywords.getDateFromLocaleString(date, contentLocale);
|
||||
|
||||
GBLog.info(`BASIC WEEKDAY contentLocale: ${contentLocale}`);
|
||||
if (dt) {
|
||||
if (!(dt instanceof Date)) {
|
||||
dt = new Date(dt);
|
||||
|
|
Loading…
Add table
Reference in a new issue