Skip to content

[IS-10713] draft implementation for language selector feature for SSP#63

Draft
vahag-curity wants to merge 1 commit intomainfrom
features/main/IS-10713-language-selection
Draft

[IS-10713] draft implementation for language selector feature for SSP#63
vahag-curity wants to merge 1 commit intomainfrom
features/main/IS-10713-language-selection

Conversation

@vahag-curity
Copy link
Contributor

No description provided.

TODO: the language selector should be extracted to its own component in @curity/ui-kit-component-library,
as it is a separate concern from the user menu and it will make the Header component cleaner and more readable.
*/}
<div className="relative" ref={menuContainerRef}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@urre I suggest extracting this into its own LanguageSelector component

perhaps better to use

<select>
    <option value="sv"></option>
    ...
</select>

so, it is easier to extract the value of the selected option

WDYT?

Copy link
Collaborator

@urre urre Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an option. Another option is to reuse <UserMenu> and making that multi-purpose.

But <select> also works fine, simple and easy. We could also nest it inside the <UserMenu> See this example:

CleanShot 2026-02-16 at 08 41 14@2x

TODO: this should be moved to @curity/ui-kit-css
to be used by UserMenu and the new language selector component
*/
.user-menu {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@urre could we extract this into css lib and reuse it both for user menu and language selector components?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea. I don't think we should add all this CSS. We already have the <UserMenu> from our component library src/common/component-library/src/components/user-menu/UserMenu.tsx

We can generalize this in to a DropdownMenu component and reuse for both UserMenu and LanguageSelector

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or use <Select> like the other comment

@vahag-curity vahag-curity marked this pull request as draft February 10, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants