What I learn while building business platforms.
How I made my portfolio bilingual with a simple EN/FR toggle: a server-read cookie, typed dictionaries, and the pitfalls to avoid.
export async function getLocale(): Promise<Locale> { const store = await cookies(); const value = store.get("locale")?.value;