From c9edddb904c62f4915e5e9049d493a6e1ca2fb7f Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 3 Jun 2026 21:33:52 +0000 Subject: [PATCH] Add src/config.ts --- src/config.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/config.ts diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..1fe1c5e --- /dev/null +++ b/src/config.ts @@ -0,0 +1,16 @@ +import { Pathnames } from 'next-intl/navigation'; + +export const locales = ['en', 'ar'] as const; +export const defaultLocale = 'ar'; // Set default to Arabic as current content is Arabic + +// Use 'always' to ensure the locale is always in the URL (e.g., /en, /ar) +export const localePrefix = 'always'; + +// Define pathnames for internationalized routes if applicable +// For a single-page app with sections, pathnames might not be strictly necessary for section IDs, +// but useful if you plan to have separate pages later (e.g., /en/about vs /ar/about) +export const pathnames = { + '/': '/', +} satisfies Pathnames; + +export type AppPathnames = keyof typeof pathnames;