Files
Hy-Memory/memhub/CONTRIBUTING.md
T
366befc2aa feat(memhub): add extensible Chinese, English, and Spanish UI (#142)
* Add Spanish localization and persistent GUI language preferences to MemHub

Co-authored-by: Cursor <cursoragent@cursor.com>

* Extend MemHub Spanish localization to the remaining GUI screens

Move the copy of Applications, memory space and map, matters, workbench,
call history, handoff and arrival panels into shared contracts catalogs.

- Merge domain catalogs without silent overrides: a key shared by two
  catalogs must have identical Chinese and Spanish texts.
- Add Spanish singular variants (`.one`) and count helpers that keep the
  Chinese numbers exactly as they were rendered before.
- Build the Spanish connection prompt from a catalog template; MCP and
  shell snippets are inserted verbatim, the Chinese prompt is unchanged.
- Word host failures at render time so a language switch re-words them.
- Unknown text, names, paths and error codes pass through untranslated;
  unknown graph node types and edge origins keep their previous labels.
- Add catalog parity, interpolation, adapter and regression tests.

* feat(memhub): add Chinese English Spanish localization

Co-authored-by: Nicolas Pirello <nicoalepirello@gmail.com>

Co-authored-by: kristinhe <kristinhe@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

* style(memhub): satisfy Node workspace lint

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(memhub): align localization fixtures with current keys

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Nicolas Pirello <nicoalepirello@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: alvinfei <alvinfei@tencent.com>
Co-authored-by: kristinhe <kristinhe@tencent.com>
2026-10-22 16:36:37 +08:00

1.1 KiB

Contributing

感谢你参与 MemHub。

开发环境

  • Node.js 24
  • pnpm 11
  • Python 3.12
  • uv

安装依赖并运行检查:

pnpm install
uv sync --directory apps/core --all-groups --locked
pnpm check

提交流程

  1. 从 main 创建短生命周期功能分支。
  2. 修复缺陷或新增行为时,先补能证明问题和结果的测试。
  3. 保持改动聚焦,不混入生成文件、真实用户数据或无关格式化。
  4. 提交 Pull Request,说明用户影响、测试证据、隐私影响和回滚方式。
  5. 等待 CI 和代码审查通过后再合并。

涉及外部源码时,必须记录项目、固定版本或 commit、许可证、采用文件和修改说明。不得提交 密钥、内部地址、真实对话、个人路径、模型权重或签名证书。

界面翻译

新增或修改界面语言时遵循 docs/LOCALIZATION.md:使用稳定语义 key,保持所有 locale 的 key 与占位符一致,不翻译用户内容、路径、标识符或外部错误正文。语言 catalog 与无关产品行为应拆成不同 PR。