-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: use nextjs i18n routing #19615
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
TODO: Continue going top down from apps/[slug]/page |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (02/28/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (02/28/25)1 reviewer was added to this PR based on Keith Williams's automation. |
TODO: Continue going top down from /auth |
e1d2bc7
to
34b4200
Compare
optimizePackageImports: ["@calcom/ui"], | ||
instrumentationHook: true, | ||
serverActions: true, | ||
}, | ||
i18n: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed! — this was being ignored by app router anyways because app router doesn't support i18n config in next.config.js
762caa3
to
c53b182
Compare
c53b182
to
b712974
Compare
@@ -164,7 +172,6 @@ export const config = { | |||
// Next.js Doesn't support spread operator in config matcher, so, we must list all paths explicitly here. | |||
// https://github.com/vercel/next.js/discussions/42458 | |||
matcher: [ | |||
"/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
fallbackLng: _nextI18Next?.userConfig?.i18n.defaultLocale, | ||
}); | ||
type LocaleType = keyof typeof dictionaries; | ||
const translationCache = new Map<string, TFunction>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cache
apps/web/app/[lang]/(use-page-wrapper)/(main-nav)/availability/page.tsx
Outdated
Show resolved
Hide resolved
This PR is being marked as stale due to inactivity. |
What does this PR do?
next-i18next
and rather using Next.js routing-based i18n (ref: https://nextjs.org/docs/pages/building-your-application/routing/internationalization)[lang]
directory/{locale}/...
(browser URL stays the same and does NOT show the {locale})getTranslate
util (it now dynamically imports the translation json and returns it)generateMetadata
utils to adapt to the changeIn #19638, we will remove
next-i18next
and replace all imports from it. I think we should merge this PR hand in hand with #19638Mandatory Tasks (DO NOT REMOVE)
How should this be tested?