From d23c81ef63520b061417600ac51a03a0e3385e2a Mon Sep 17 00:00:00 2001 From: Rajaneesh Date: Wed, 4 Dec 2024 21:38:42 +0530 Subject: [PATCH] Fixed Other lang when county is US --- .../src/components/notice-choice/notice-choice.ts | 7 +++++++ .../src/components/notice-choice/services.ts | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/web-components/src/components/notice-choice/notice-choice.ts b/packages/web-components/src/components/notice-choice/notice-choice.ts index 34a0e22a240..4d954b5d2d0 100644 --- a/packages/web-components/src/components/notice-choice/notice-choice.ts +++ b/packages/web-components/src/components/notice-choice/notice-choice.ts @@ -622,6 +622,13 @@ class NoticeChoice extends StableSelectorMixin(LitElement) { ecmTranslateContent.state[country][state]?.combinedConsent || ecmTranslateContent.combinedConsent; } + } else if (country === 'us') { + preText = + state === 'ca' || state === '' || typeof state === 'undefined' + ? ecmTranslateContent.state?.[country]?.['ca']?.noticeOnly + ? ecmTranslateContent.state?.[country]?.['ca']?.noticeOnly + : ecmTranslateContent.noticeOnly + : ecmTranslateContent.noticeOnly; } if (ecmTranslateContent.country?.[country]) { diff --git a/packages/web-components/src/components/notice-choice/services.ts b/packages/web-components/src/components/notice-choice/services.ts index 54ec747dcaa..c2514492983 100644 --- a/packages/web-components/src/components/notice-choice/services.ts +++ b/packages/web-components/src/components/notice-choice/services.ts @@ -13,7 +13,6 @@ export function loadContent( ) { const script = document.createElement('script'); const environment = env === 'prod' ? '1.www.s81c.com' : '1.wwwstage.s81c.com'; - console.log(environment, 'env', env); script.async = false; script.charset = 'utf-8'; script.src = `https://${environment}/common/translations/notice/v23/${locale.toLocaleLowerCase()}/ncContent_v23.js`; // URL for the third-party library being loaded.