Files
SRCmail/stores/locale-store.ts
T
Matthieu MALVACHEandMatthieu MALVACHE cf21a84263 Initial release: JMAP Webmail Client
A modern, privacy-focused webmail client built with Next.js and the JMAP protocol.
Designed for Stalwart Mail Server.

Features:
- Full email operations (compose, reply, forward, threading)
- Real-time push notifications
- Dark/light theme support
- Mobile responsive design
- Keyboard shortcuts
- Drag-and-drop organization
- i18n (English/French)
- Security-first (external content blocked, HTML sanitization)
2025-12-10 17:54:22 +01:00

19 lines
367 B
TypeScript

import { create } from 'zustand';
import { persist } from 'zustand/middleware';
interface LocaleStore {
locale: string;
setLocale: (locale: string) => void;
}
export const useLocaleStore = create<LocaleStore>()(
persist(
(set) => ({
locale: 'en',
setLocale: (locale) => set({ locale }),
}),
{
name: 'locale-storage',
}
)
);