Skip to content

Multi-channel, multi-locale support #1776

Answered by amannn
mvanpijkeren asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, thanks for the thoughtful question!

"shop.belgium.be-fr-BE"

So locales are really required to be valid IETF language tags. In v3 some features work even for invalid locales but others will break. In v4 (will be released soon), there will be an upfront warning when you're using invalid locales.

That being said, you can encode quite a bit into locales, including private, arbitrary information—so that should hopefully let you provide e.g. a differentiator for different German stores.

In combination with custom prefixes and a locale prefix config, I think this should get you pretty far! You can then extract your channel from the locale and use it as necessary in code.

Hope this helps, …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mvanpijkeren
Comment options

Answer selected by mvanpijkeren
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request unconfirmed Needs triage.
2 participants
Converted from issue

This discussion was converted from issue #1772 on March 11, 2025 12:23.