refactor: move from next-international to next-intl (#1368)
* refactor: move from next-international to next-intl * refactor: restructure translation package, * chore: change i18n-allay framework to next-intl * fix: add missing bold html tag to translation * fix: format issue * fix: address deepsource issues * fix: remove international-types dependency * fix: lint and typecheck issues * fix: typecheck issue * fix: typecheck issue * fix: issue with translations
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { createI18nMiddleware } from "next-international/middleware";
|
||||
import createMiddleware from "next-intl/middleware";
|
||||
|
||||
import { defaultLocale, supportedLanguages } from ".";
|
||||
import { routing } from "./routing";
|
||||
|
||||
export const I18nMiddleware = createI18nMiddleware({
|
||||
locales: supportedLanguages,
|
||||
defaultLocale,
|
||||
urlMappingStrategy: "rewrite",
|
||||
});
|
||||
export const I18nMiddleware = createMiddleware(routing);
|
||||
|
||||
export const config = {
|
||||
// Match only internationalized pathnames
|
||||
matcher: ["/", "/(de|en)/:path*"],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user