From 45d0bf3a8513c927c16788204c9cd4604ad21691 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 28 Aug 2021 16:53:43 -0300 Subject: [PATCH] fix(basic.gblib): Fix in WEEKDAY culture always in English. --- packages/basic.gblib/services/DialogKeywords.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index b5549ba4..75484b11 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -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);