Jan Amann

Results 436 comments of Jan Amann

Oh cool, I've missed that—works like a charm! One thing I'd personally like to customize is to turn off the color of the highlight marker on the left (or set...

> Which works-ish so far. Do you have some details about the parts that don't work? Which `localePrefix` setting do you use? Since the `[locale]` prefix comes first, I'm wondering...

@yaman3bd Let's continue the conversation from https://github.com/amannn/next-intl/discussions/532#discussioncomment-9677402 here since it's more related to multi-tenancy than switching locales. What you've shared in the other thread: **App structure:** ``` . └── app/...

Thanks, that helps! What is your motivation for the `[domain]` segment? You could continue to use the host header in Server Components if that has worked well for you so...

> but if the tenant fetch returns 404 or 500 can I return notFound or show the error page? A middleware can return a 404 status code, but unfortunately not...

@pepijn-vanvlaanderen Have you by chance tried adapting `x-middleware-rewrite` as mentioned above in https://github.com/amannn/next-intl/issues/1107#issuecomment-2152373012? Haven't tried it yet, but I think it could work for this use case.

> it worked as a charm, thanks! Awesome! 🙌 > I have completed the setup and it is working fine, but I had an issue with `createSharedPathnamesNavigation` I have to...

@sirajtahra I think [custom prefixes](https://next-intl-docs.vercel.app/docs/routing#locale-prefix-custom) could work for this: ```tsx import {defineRouting} from 'next-intl/routing'; export const routing = defineRouting({ locales: ['en-US-x-saudi', 'en-US-x-uae', 'ar-SA-x-saudi', 'ar-SA-x-uae'], defaultLocale: 'en-US-x-saudi', localePrefix: { mode: 'always',...

Hey @markomitranic, hmm that doesn't sound right, yes. Are you also using custom prefixes since you mentioned that in your comment? But yes, `prefixes` is only for rewriting prefixes and...

@markomitranic I've added https://github.com/amannn/next-intl/pull/1594 to try to set up a failing test. You think you could help me out there?