Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.
TypeScript
docs: propose an i18n layer (#143)
twinprime1964440c682739
diff --git a/adrs/i18n.md b/adrs/i18n.mdnew file mode 100644index 00000000..31bc1eb7--- /dev/null+++ b/adrs/i18n.md@@ -0,0 +1,9 @@+# Let the CRM speak more than English++I'm heavily testing the CRM for use in both my own start up and in a more established company at the same time. Both of these companies are in Vietnam. The copy is hardcoded English everywhere, so localizing means forking every file that renders a sentence. It's a lot of work to redo the localization in the future when upstream moves. I'm keen to keep working on this repo so I'd like to propose we make it multi-lingual. I'm sure this would be useful to other users worldwide. This work would set the foundation that allows other contributors to then contribute their own language pack. When this is done, I will also provide the first Vietnamese translation with guides on how users can do that most efficiently with their coding agents. I think this would help the repo, as great as it already is, grow and reach further.++What I want to change: every user-visible string in `apps/app` and `packages/ui` goes through a catalog — next-intl, English-only this round, so a language is a translation job, not a refactor. Strings only; date, number and currency formatting stay. No URL segment, no middleware: the app sits behind sign-in, so a cookie plus a `user.locale` column is enough. `packages/ui` takes zero i18n dependency — English defaults in the package, overrides through a provider.++Enforcement: an AST checker in CI fails on hardcoded JSX text, translatable attributes and toasts; a pseudo-locale catches what static analysis cannot. Rendered English is unchanged — plumbing, not a copy edit. Copy then lives in one place, so your future edits are key-level catalog diffs instead of JSX archaeology.++Costs: `/` drops full static prerender for a static shell; the other prerendered routes keep theirs. And every new string must enter the catalog or CI fails. English stays the only built-in language — packs arrive as contributions (Vietnamese first, from me), missing keys fall back to English per-string, so a release never waits on a translation. It lands as roughly ten PRs: infrastructure, then per-area extraction, each small and green. All of it already runs on our fork. Happy either way: I can send it in reviewable slices, or you build it your way and I'll contribute the Vietnamese pack on top.