Skip to content

Commit

Permalink
Fixed Other lang when county is US
Browse files Browse the repository at this point in the history
  • Loading branch information
deathcave committed Dec 4, 2024
1 parent 684c86a commit d23c81e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d23c81e

Please sign in to comment.