Date formatting: EN-US for US language people, EN-GB for everyone else? #1811
Replies: 1 comment 4 replies
-
Hmm, it sounds like a somewhat blurry mix to me. I understand you want to improve the user experience for different regions, but wouldn't it be odd if you adapt e.g. date formatting to match US cultural preferences but leave text labels in British English? You're making a tradeoff anyway, but leaving the app in a consistent state might make this clear to visitors too, don't you think? Implementation-wise I think the custom prefixes will probably conflict in this case and not lead to reliable results. You'd probably have to wrap the middleware or provide your own implementation to get this working. Would it be an option for your app to set the locales up with their own prefix? E.g. Watershed has support for both |
Beta Was this translation helpful? Give feedback.
-
I am being tasked with seeing how possible this is, or even if it is a terrible idea for some reason. There is a desire to keep the UX as simples as possible (by having EN be the only language option), but then have some intelligence around whether we use US or GB style date formatting.
We use mixed routing, as we have public pages, and internal logged in pages
https://github.com/amannn/next-intl/tree/main/examples/example-app-router-mixed-routing
Is the best thing to add both en-us and en-gb as supported locales, and then use custom prefixes to map them both tn "en"? I would think that might not work, and even if it did, I am not sure how I would achieve en-us only for en-us, and en-gb for everyone else.
Beta Was this translation helpful? Give feedback.
All reactions