Switch to version 3: modified src/config.ts

This commit is contained in:
2026-06-03 21:50:10 +00:00
parent e78ba0f13f
commit 8dfb743bd2

View File

@@ -1 +1,16 @@
export const config = {};
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 = {
'/': '/',
};
export type AppPathnames = keyof typeof pathnames;