SevnlyHelp Center
In this section

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 (<page>.<locale>.mdx, 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 one and other; others may need few, many, etc., or none at all. # is the formatted number.
  • Don’t format dates, times or numbers by hand. Sevnly uses Intl.DateTimeFormat, Intl.RelativeTimeFormat and Intl.NumberFormat, so 76,748 becomes 76 748 in 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.json first, 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-DD and 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#getWeekInfo where available). Users can override them.
  • Quick add (lunch fri 1pm) uses the matching chrono-node locale 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

  1. Copy packages/i18n/locales/en.yml to packages/i18n/locales/<code>.yml, add it to LOCALE_FILES in scripts/build.ts, translate it, and run pnpm --filter @sevnly/i18n build. Partial is fine to start; untranslated values can stay English.
  2. Add the locale to the site’s Astro i18n routing so it gets its own path and hreflang tags.
  3. Translate the policy pages into apps/web/src/content/legal/<code>/ (they’ll show the “English is authoritative” note) and the FAQ into apps/web/src/content/faq/<code>.md.
  4. Check whether chrono-node has a locale for your language. If not, quick add falls back to English.
  5. Add your language’s column to the lore glossary.
  6. Optionally add theme name translations in each theme.json and docs translations (below).
  7. Open a PR with the i18n label. 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 help center (docs.sevnly.com, apps/docs) uses the same locales. English is the source; a page that isn’t translated yet shows the English one with a note. Translate a page by adding a copy next to it in apps/docs/content/ with the locale’s URL prefix before .mdx: planning/print.zh-tw.mdx, planning/index.ja.mdx. Search covers the English text for now.

Questions, or no GitHub account? Email hello@sevnly.com.

Was this helpful?

Edit this page on GitHub