Skip to content

Commit

Permalink
fix(basic.gblib): Fix in WEEKDAY culture always in English.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 28, 2021
1 parent 87d91d7 commit 45d0bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);
Expand Down

0 comments on commit 45d0bf3

Please sign in to comment.