14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import createMiddleware from "next-intl/middleware";
|
|
|
|
export default createMiddleware({
|
|
// A list of all locales that are supported
|
|
locales: ["en", "ru", "kg"],
|
|
// Used when no locale matches
|
|
defaultLocale: "ru",
|
|
});
|
|
|
|
export const config = {
|
|
// Match only internationalized pathnames
|
|
matcher: ["/", "/(en|ru|kg)/:path*"],
|
|
};
|