Skip to Content
Sevnly Docs

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:

CodeLanguage
enEnglish (source)
zh-TWTraditional Chinese (Taiwan)
zh-CNSimplified Chinese
jaJapanese
koKorean
esSpanish
frFrench
deGerman

English is the source for everything. Site pages are routed per locale (/, /zh-tw/, /ja/ …) with hreflang tags.

Where strings live

WhatWhere
App and site UI stringspackages/i18n/locales/<locale>.yml
Policy pagesapps/web/src/content/legal/<locale>/*.md
FAQapps/web/src/content/faq/<locale>.md
Calendar templates and starter tasksStrings in packages/i18n (the templates themselves are in packages/core/templates.ts)
Theme namesThe name field of each theme.json (see making-a-theme.md)
Docsapps/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 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.

EnglishGood zh-TWNot this
"Nothing here. Sev is napping."Keep "Sev", translate the restTranslating "Sev" into a Chinese name
"This page blew off the Margin."Keep "the Margin" as a nameA 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

Englishzh-TWNotes
SevSevNever translated
the Marginthe MarginNever 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

Englishzh-TW
SevSev
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 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].

On this page