mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
c5a1503684
* Localisation * Update tests * Fix map markers in English view * Fix typo
16 lines
509 B
TypeScript
16 lines
509 B
TypeScript
import createMiddleware from 'next-intl/middleware';
|
|
|
|
export default createMiddleware({
|
|
// A list of all locales that are supported
|
|
locales: ['fr', 'en'],
|
|
|
|
// If this locale is matched, pathnames work without a prefix (e.g. `/tournois`)
|
|
defaultLocale: 'fr'
|
|
});
|
|
|
|
export const config = {
|
|
// Skip all paths that should not be internationalized. This example skips certain folders
|
|
// such as "api", and all files with an extension (e.g. favicon.ico)
|
|
matcher: ['/((?!api|_next|robots|.*\\..*).*)']
|
|
}
|