Add support for locale: '*' to use all available locales#16
Merged
Conversation
Co-authored-by: markets <576701+markets@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Now both the translate and the localize methods have the multiple locales return, lets add a nee feature on top, if
Add support for Aug 26, 2025
locale: '*' is provided, all available locales will be usedlocale: '*' to use all available locales
markets
reviewed
Aug 26, 2025
…ntation Co-authored-by: markets <576701+markets@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for using
locale: '*'in bothtranslateandlocalizemethods to automatically use all available locales, building on the existing multiple locales functionality.Changes
translatemethod: Now acceptslocale: '*'to translate keys across all available localeslocalizemethod: Now acceptslocale: '*'to localize objects across all available localesUsage Examples
Implementation Details
The implementation is minimal and leverages the existing multiple locales infrastructure:
locale: '*'tolocale: available_localesarrayavailable_localeschangesTesting
Added comprehensive tests covering:
'*'locale'*'locale'*'localeAll existing tests continue to pass, ensuring no regression in functionality.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.