mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-25 08:01:16 +00:00
- 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
14 lines
435 B
TypeScript
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|.*\\..*).*)']
|
|
}; |