Skip to content

Move LocaleSelector to locale module#4265

Open
MundiaNderi wants to merge 7 commits into
mozilla:mainfrom
MundiaNderi:locale-module
Open

Move LocaleSelector to locale module#4265
MundiaNderi wants to merge 7 commits 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.

@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 Outdated
@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

@MundiaNderi
MundiaNderi marked this pull request as draft July 8, 2026 19:47
Move LocaleSelector to locale module
@MundiaNderi
MundiaNderi marked this pull request as ready for review July 9, 2026 06:07
Comment thread translate/src/modules/batchactions/components/LocaleSelector.tsx
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

3 participants