All checks were successful
Dev CI / Backend — Lint (push) Successful in 10m23s
Dev CI / Backend — Unit Tests (push) Successful in 10m17s
Dev CI / Frontend — Lint & Type-check (push) Successful in 11m3s
Dev CI / Frontend — Unit Tests (push) Successful in 10m33s
Dev CI / Notify Failure (push) Has been skipped
11 lines
307 B
TypeScript
11 lines
307 B
TypeScript
import { defineRouting } from 'next-intl/routing';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['fr', 'en'],
|
|
defaultLocale: 'fr',
|
|
// Every URL is prefixed by the locale (/fr/..., /en/...) per user decision.
|
|
localePrefix: 'always',
|
|
});
|
|
|
|
export type AppLocale = (typeof routing.locales)[number];
|