feat: add next-international translations (#2)

* feat: add next-international translations
* chore: fix formatting
* chore: address pull request feedback
This commit is contained in:
Meier Lukas authored and GitHub committed 2023-12-19 23:09:41 +01:00
1 parent 3cedb7fba5
commit a082f70470
24 files changed
+290 -27

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { createI18nMiddleware } from "next-international/middleware";
import { defaultLocale, supportedLanguages } from ".";
export const I18nMiddleware = createI18nMiddleware({
locales: supportedLanguages,
defaultLocale,
urlMappingStrategy: "rewrite",
});