import { defineRouting } from 'next-intl/routing';

export const routing = defineRouting({
  locales: ['ar', 'en'],
  defaultLocale: 'ar',
  localePrefix: 'always',
  // hreflang is emitted once, from metadata, with the canonical domain. The default Link header
  // would repeat it using whatever host the request arrived on.
  alternateLinks: false,
});

export type Locale = (typeof routing.locales)[number];
