mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 17:00:54 +01:00
* feat: add next-international translations * chore: fix formatting * chore: address pull request feedback
10 lines
265 B
TypeScript
10 lines
265 B
TypeScript
import { createI18nMiddleware } from "next-international/middleware";
|
|
|
|
import { defaultLocale, supportedLanguages } from ".";
|
|
|
|
export const I18nMiddleware = createI18nMiddleware({
|
|
locales: supportedLanguages,
|
|
defaultLocale,
|
|
urlMappingStrategy: "rewrite",
|
|
});
|