fix(basic.gblib): Fix in WEEKDAY culture always in English.

This commit is contained in:
Rodrigo Rodriguez 2021-08-28 16:53:43 -03:00
parent 87d91d71f5
commit 45d0bf3a85

View file

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