mirror of
https://github.com/Dokploy/website.git
synced 2026-06-28 10:35:22 +02:00
15 lines
329 B
TypeScript
15 lines
329 B
TypeScript
import createMiddleware from "next-intl/middleware";
|
|
|
|
export default createMiddleware({
|
|
locales: ["en", "fr", "es", "zh-Hans"],
|
|
|
|
// Used when no locale matches
|
|
defaultLocale: "en",
|
|
localePrefix: "as-needed",
|
|
});
|
|
|
|
export const config = {
|
|
// Match only internationalized pathnames
|
|
matcher: ["/((?!api|_next|.*\\..*).*)"],
|
|
};
|