Skip to content

Move LocaleSelector to locale module#4265

Open
MundiaNderi wants to merge 1 commit into
mozilla:mainfrom
MundiaNderi:locale-module
Open

Move LocaleSelector to locale module#4265
MundiaNderi wants to merge 1 commit into
mozilla:mainfrom
MundiaNderi:locale-module

Conversation

@MundiaNderi

@MundiaNderi MundiaNderi commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Fixes #4263

Makes the component reusable outside of batch actions.

To test: Check the file structure and run associated tests.

Move LocaleSelector to locale module
@MundiaNderi MundiaNderi self-assigned this Jun 30, 2026
@MundiaNderi MundiaNderi requested a review from mathjazz June 30, 2026 07:23

@mathjazz mathjazz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the patch!

Please also:

  • factor out the relevant CSS rules into the locale module
  • add/move relevant tests to the locale module

What are your thoughts of splitting the component into LocaleMenu and LocaleItem components, which is what we do for the project and resource components?

Comment thread translate/src/modules/batchactions/components/BatchActions.tsx
@MundiaNderi

Copy link
Copy Markdown
Collaborator Author

Thanks for the patch!

Please also:

  • factor out the relevant CSS rules into the locale module
  • add/move relevant tests to the locale module

What are your thoughts of splitting the component into LocaleMenu and LocaleItem components, which is what we do for the project and resource components?

I'll look into this in depth and revert

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.

Move batchactions/LocaleSelector into the Locale Module

2 participants