Skip to content

Feat/masthead lang selector - #12309

Merged
kodiakhq[bot] merged 5 commits into
carbon-design-system:mainfrom
bruno-amorim:feat/masthead-lang-selector
Sep 4, 2025
Merged

Feat/masthead lang selector#12309
kodiakhq[bot] merged 5 commits into
carbon-design-system:mainfrom
bruno-amorim:feat/masthead-lang-selector

Conversation

@bruno-amorim

@bruno-amorim bruno-amorim commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Related Ticket(s)

https://jsw.ibm.com/browse/ADCMS-8762

Description

Implementation of the language selector in the Masthead's global bar:

image

Changelog

New files created:

  • packages/web-components/src/components/masthead/megamenu-language-selector.ts
  • packages/web-components/src/components/masthead/megamenu-language-selector.scss

Testing Instructions

Since the Storybook does not have meta tags for LC and CC, we need to emulate that. We can use this code to inject some meta tags to the Storybook through the console and then click on the globe icon to test again:

const metaCC = document.createElement('meta');
metaCC.name = 'countryCode';
metaCC.content = 'us';
const metaLC = document.createElement('meta');
metaLC.name = 'languageCode';
metaLC.content = 'en';
document.head.appendChild(metaCC);
document.head.appendChild(metaLC);

@bruno-amorim
bruno-amorim requested a review from a team as a code owner September 2, 2025 18:07
@bruno-amorim
bruno-amorim requested review from Valentin-Sorin-Nicolae and marcelojcs and removed request for a team September 2, 2025 18:07
@netlify

netlify Bot commented Sep 2, 2025

Copy link
Copy Markdown

Deploy Preview for incomparable-wisp-8d6771 ready!

Name Link
🔨 Latest commit 0d39563
🔍 Latest deploy log https://app.netlify.com/projects/incomparable-wisp-8d6771/deploys/68b9d016893efa000873436a
😎 Deploy Preview https://deploy-preview-12309--incomparable-wisp-8d6771.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 2, 2025

Copy link
Copy Markdown

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit 0d39563
🔍 Latest deploy log https://app.netlify.com/projects/ibm-dotcom-web-components-react-wrap/deploys/68b9d016d13e02000807cfbe
😎 Deploy Preview https://deploy-preview-12309--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 2, 2025

Copy link
Copy Markdown

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 0d39563
🔍 Latest deploy log https://app.netlify.com/projects/ibm-dotcom-web-components/deploys/68b9d01618d23100080201ce
😎 Deploy Preview https://deploy-preview-12309--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@marcelojcs marcelojcs added Ready to merge Label for the pull requests that are ready to merge and removed DO NOT MERGE labels Sep 4, 2025
@kodiakhq
kodiakhq Bot merged commit 124bf6e into carbon-design-system:main Sep 4, 2025
19 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready to merge Label for the pull requests that are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants