AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
import { matchSupportedLocale } from "@edgeever/shared/i18n/locales";
/**
* Some bundled content (docs, demo notebooks, sample audio, sample syntax, poster typography)
* ships only in Simplified Chinese and English. Chinese UI reads the Chinese variant; every
* other UI locale reads the English one.
*/
export type BilingualContentLocale = "zh-CN" | "en-US";
export const bilingualContentLocale = (locale: string | null | undefined): BilingualContentLocale =>
matchSupportedLocale(locale) === "zh-CN" ? "zh-CN" : "en-US";
export const prefersChineseContent = (locale: string | null | undefined) =>
bilingualContentLocale(locale) === "zh-CN";