Unify workspace dropdowns; Update layouts (#458)
Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
This commit is contained in:
committed by
GitHub
parent
ca585e09be
commit
4bc8448a1d
23
packages/i18n/src/routing.ts
Normal file
23
packages/i18n/src/routing.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineRouting } from 'next-intl/routing';
|
||||
|
||||
import { defaultLocale } from './default-locale';
|
||||
import { locales } from './locales';
|
||||
|
||||
// Define the routing configuration for next-intl
|
||||
export const routing = defineRouting({
|
||||
// All supported locales
|
||||
locales,
|
||||
|
||||
// Default locale (no prefix in URL)
|
||||
defaultLocale,
|
||||
|
||||
// Default locale has no prefix, other locales do
|
||||
// Example: /about (en), /es/about (es), /fr/about (fr)
|
||||
localePrefix: 'as-needed',
|
||||
|
||||
// Enable automatic locale detection based on browser headers and cookies
|
||||
localeDetection: true,
|
||||
});
|
||||
|
||||
// Export locale types for TypeScript
|
||||
export type Locale = (typeof routing.locales)[number];
|
||||
Reference in New Issue
Block a user