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)
19 lines
367 B
TypeScript
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',
|
|
}
|
|
)
|
|
); |