14 lines
289 B
TypeScript
14 lines
289 B
TypeScript
import {defineRouting} from 'next-intl/routing';
|
|
|
|
export const routing = defineRouting({
|
|
locales: ['en', 'ro'],
|
|
defaultLocale: 'en',
|
|
localePrefix: 'always',
|
|
localeNames: {
|
|
en: 'English',
|
|
ro: 'Română'
|
|
}
|
|
} as any);
|
|
|
|
export type Locale = (typeof routing.locales)[number];
|