How can I use subtags? #471
Unanswered
kenji-webdev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I just tried to reproduce this in a CodeSandbox: https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-kpgfsy?file=/messages/pt-BR.json:3,30 When I open https://kpgfsy-3000.csb.app/pt-BR, I see in my devtools: … and then "Home from pt-BR" renders for me. Anything you can spot that you're doing differently? The middleware has quite an extensive test suite in case you find a particular request that you'd like to debug: https://github.com/amannn/next-intl/blob/main/packages/next-intl/test/middleware/middleware.test.tsx |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried using both en-US and pt-BR locales but I can't get them to work, I'm just redirected to
/en
, and if I try to navigate directly to, for example,pt-BR
, I end up in/en/pt-BR
this is my
src
folderI've renamed the
message/*.json
files,the values inside the locale property,
the
middleware.ts
.I've also tried using an underline instead of a dash but that didn't work either,
The keywords I've used to search for previous discussions before posting this one were: "subtags", "subtag", "pt-BR" and "en-US", I've removed the
is:open
tag as well.Beta Was this translation helpful? Give feedback.
All reactions