Translate Sevnly
Add a language and keep character names consistent.
Thank you for helping people plan in their own language. Everything a person reads in Sevnly is translated: the app, the site, emails, the policy pages, the FAQ, printouts, starter tasks, lore lines and the docs.
Locales
Sevnly launches with 8 locales:
| Code | Language |
|---|---|
en | English (source) |
zh-TW | Traditional Chinese (Taiwan) |
zh-CN | Simplified Chinese |
ja | Japanese |
ko | Korean |
es | Spanish |
fr | French |
de | German |
English is the source for everything. Site pages are routed per locale (/, /zh-tw/, /ja/ …) with hreflang tags.
Where strings live
| What | Where |
|---|---|
| App and site UI strings | packages/i18n/locales/<locale>.yml |
| Policy pages | apps/web/src/content/legal/<locale>/*.md |
| FAQ | apps/web/src/content/faq/<locale>.md |
| Calendar templates and starter tasks | Strings in packages/i18n (the templates themselves are in packages/core/templates.ts) |
| Theme names | The name field of each theme.json (see making-a-theme.md) |
| Docs | apps/docs (Fumadocs i18n, see Docs) |
packages/i18n is MIT-licensed, so the translations can be reused anywhere.
The message format
Locale files are flat JSON: one level, a key and a string. Plurals and other variations use ICU MessageFormat, read by a tiny t() built on intl-messageformat.
{
"app.name": "Sevnly",
"week.today": "Today",
"list.someday": "Someday",
"task.add": "Add a task",
"stats.live": "{tasks, plural, one {# task} other {# tasks}}, {users, plural, one {# active user} other {# active users}} / 24h"
}And in zh-TW.json, where Chinese has no plural forms, the same key is simply:
{
"stats.live": "{tasks} 個任務、{users} 位活躍使用者 / 24 小時"
}Key rules
- Translate the value, never the key. Keys are identical in every file.
- Keep every
{placeholder}exactly as it is, with the same name. You can move it anywhere in the sentence. - Use the plural categories your language needs. English needs
oneandother; others may needfew,many, etc., or none at all.#is the formatted number. - Don't format dates, times or numbers by hand. Sevnly uses
Intl.DateTimeFormat,Intl.RelativeTimeFormatandIntl.NumberFormat, so76,748becomes76 748in French on its own. - Translate naturally, not word for word. Match the voice: plain, warm, short. No guilt ("3 tasks moved to today", not "you missed 3 tasks!").
- Don't add keys only to your locale. New keys are added to
en.jsonfirst, by whoever adds the feature. - Error messages come from API error codes that the UI translates, so they live in the locale files too.
CI key check
A CI check runs on every PR and fails if any locale is missing keys relative to en.json. If you add a key to en.json, add it to every other locale in the same PR (the English text is fine as a placeholder) so the check passes, and translators can follow up.
Lore names and the glossary
Sev and the Margin are names. They stay exactly the same in every language, like the product name Sevnly.
Every other lore term (the Bookmark, the Fold, the Drawer, the Ledger, Margin Folk, Pen-borrowers, …) and every avatar preset name is translated, but always the same way. The glossary below fixes one translation per language, so "the Fold" never becomes three different words in three places. Use it in the app strings, emails, docs and the About story alike.
| English | Good zh-TW | Not this |
|---|---|---|
| "Nothing here. Sev is napping." | Keep "Sev", translate the rest | Translating "Sev" into a Chinese name |
| "This page blew off the Margin." | Keep "the Margin" as a name | A literal word for "page margin" |
| "…slip across the Fold." | Use the glossary term for "the Fold" | A different word each time |
Lore lines should still read well in your language. A short, natural sentence beats a faithful one. See lore.md for the full canon.
Lore glossary
| English | zh-TW | Notes |
|---|---|---|
| Sev | Sev | Never translated |
| the Margin | the Margin | Never translated |
| the Seven Boxes | 七個格子 | |
| the Drawer | 抽屜 | |
| the Bookmark | 書籤 | |
| the Fold | 摺痕 | |
| slipping to the next box | 滑到下一格 | |
| a fresh page | 新的一頁 | |
| pencil / ink | 鉛筆 / 墨水 | |
| Margin Folk | 頁邊居民 | |
| Pen-borrowers | 借筆客 | |
| the Ledger | 帳本 | |
| ✦ spark | ✦ 火花 |
Avatar presets
| English | zh-TW |
|---|---|
| Sev | Sev |
| Astronaut | 太空人 |
| Wizard | 魔法師 |
| Tinker | 修補匠 |
| Cat | 貓咪 |
| Frog | 青蛙 |
| Knight | 騎士 |
| Chef | 主廚 |
| Gardener | 園丁 |
| Student | 學生 |
| Night owl | 夜貓子 |
| Ghost | 幽靈 |
| Visitor (guest only) | 訪客 |
Adding a language? Add a column for it to both tables in the same PR as your locale file. Changing an existing entry means changing it everywhere it's used, so propose it in its own PR. New lore terms or presets are added here at the same time as in lore.md.
What stays in English
- MCP tool descriptions stay in English, which works best for LLMs. MCP outputs keep machine dates as
YYYY-MM-DDand add human labels (weekday, week label) in the user's language, so those labels are translated. - Policy pages: English is the authoritative version. Translations show a note saying so.
Everything else, including emails, is translated into the user's language.
Things that follow the locale automatically
You don't need to translate these, but it helps to know they exist:
- Week start, 12/24h clock, first day of the week come from the locale (
Intl.Locale#getWeekInfowhere available). Users can override them. - Quick add (
lunch fri 1pm) uses the matchingchrono-nodelocale where one exists and falls back to English. - Command palette commands match both in the user's language and in English.
- Search filters have translated aliases.
- Layout uses logical Tailwind classes (
ms-*,ps-*), so it's ready for right-to-left languages.
Adding a new locale
- Copy
packages/i18n/locales/en.ymltopackages/i18n/locales/<code>.yml, add it toLOCALE_FILESinscripts/build.ts, translate it, and runpnpm --filter @sevnly/i18n build. Partial is fine to start; untranslated values can stay English. - Add the locale to the site's Astro i18n routing so it gets its own path and
hreflangtags. - Translate the policy pages into
apps/web/src/content/legal/<code>/(they'll show the "English is authoritative" note) and the FAQ intoapps/web/src/content/faq/<code>.md. - Check whether
chrono-nodehas a locale for your language. If not, quick add falls back to English. - Add your language's column to the lore glossary.
- Optionally add theme name translations in each
theme.jsonand docs translations (below). - Open a PR with the
i18nlabel. Translators are credited per language on the About page.
To fix or improve an existing locale, edit its JSON file and open a PR with the i18n label. There's an issue template for translation problems too.
Docs
The docs site (docs.sevnly.com, apps/docs) uses Fumadocs i18n with the same locales. English is the source; a page that isn't translated yet falls back to English with a note. Translate a page by adding the localized version next to the English one, following Fumadocs' i18n layout.
Questions, or no GitHub account? Email [email protected].