Files
jmap-webmail/middleware.ts
T
Matthieu MALVACHE 1c3e3a6f99 fix: Resolve UI/UX and localization issues
- Fixed light mode not applying correctly by ensuring proper class handling
- Fixed French language switching with updated middleware configuration
- Improved dark mode color contrast on language selector
- Redesigned sidebar footer with sliding settings panel for better UX
- Added visual storage quota indicator with progress bar
- Updated theme switcher with grid layout and better visual feedback
- Separated logout button from other settings for clarity
- Added proper translations for all UI elements
- Fixed theme persistence across page refreshes
2025-10-02 01:51:30 +02:00

14 lines
435 B
TypeScript

import createMiddleware from 'next-intl/middleware';
import { locales, defaultLocale } from './i18n/request';
export default createMiddleware({
locales,
defaultLocale,
localePrefix: 'always', // Always show locale in URL for consistency
localeDetection: true // Enable browser language detection
});
export const config = {
// Skip all paths that should not be internationalized
matcher: ['/((?!api|_next|.*\\..*).*)']
};