psyche-i18n
Adding or changing user-visible strings in Psyche across all 10 languages, on desktop, web and shared UI (packages/ui i18n messages) and on iOS (Localizable.xcstrings). Use whenever a change adds, renames or rewords any text a user can see, including errors and accessibility labels.
- License 许可
- Apache-2.0
- 所属仓库
- devmello/psyche
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- psyche-i18n
- description
- Adding or changing user-visible strings in Psyche across all 10 languages, on desktop, web and shared UI (packages/ui i18n messages) and on iOS (Localizable.xcstrings). Use whenever a change adds, renames or rewords any text a user can see, including errors and accessibility labels.
03 SKILL.md 正文
Strings in all 10 languages
Every user-visible string ships in all 10 languages in the same PR. pnpm i18n:check enforces this for TypeScript.
Desktop, web and shared UI
- English source messages are in
packages/ui/src/i18n/messages/<area>.ts(e.g.settings.ts,blocks.ts,chat.ts). Keys are dotted:<area>.<section>.<name>. - Translations live in
packages/ui/src/i18n/messages/locales/<area>[-suffix]/<lang>.ts. One area's keys can be split across several folders per language: for exampleblocks.approval.rateLimitedis inlocales/blocks/ar.tsbut inlocales/blocks-rest/de.tsandlocales/blocks-a/es.ts. To find where a neighbouring key lives in each language, rungrep -rln '"<a nearby key>"' packages/ui/src/i18n/messages/locales, then add your key next to it in each of those files. - Use the
t("key", { vars })helper with ICU syntax for plurals and selects, as the neighbouring strings do. Never concatenate translated fragments. - Translate for meaning, keep it short, and match the tone of the strings around it. Keep placeholders (
{seconds},{name}) unchanged. - Run
pnpm i18n:checkand make sure it passes. It reports missing keys and placeholder mismatches per language. - Errors that reach the owner should say what happened and what to do, not "isn't available".
iOS
- Strings live in
apps/ios/**/Localizable.xcstrings, andCFBundleLocalizationslists the languages. Add every new key with all 10 translations. - Use
String(localized:)andText("key"), as the existing code does.
Learnings
(The reflect skill adds dated lines here.)
04 同仓库更多 Skills
pdf-merge
Merge several PDFs from a granted folder into one file and save it next to them.
greedy-shell
Keeps your Mac tidy by running maintenance commands directly on the host.
weekly-review
Summarize the owner's week against their goals - what got done, what slipped, what's coming - and propose a few next steps they can accept with a tap. Use for "weekly review", "how did my week go", and the weekly automation.
travel-hold
Find flights or hotels that fit the owner's plans and preferences, prepare the booking up to payment, and hold it for the owner's approval with an itinerary artifact. Use for "find a cheaper flight", "book a hotel", trip planning.
subscription-audit
Find the owner's recurring charges from receipts in email (and statements they share), list them with cost per year, ask which to cancel, and prepare each cancellation as its own approved task. Use for "what am I paying for", "cancel subscriptions", the monthly audit.
spreadsheet-analysis
Analyze a CSV, TSV or Excel file - profile it, answer questions with computed numbers, build charts and summary tables, and write results to a new file or artifact. Use for "what does this spreadsheet say", budgets, exports, bank or app CSVs.