Commit Graph

9 Commits

Author SHA1 Message Date
olwater
10acfb6fff feat(i18n): introduce internationalization architecture and zh-CN support
This commit adds a robust i18n framework to OpenClaw with the following highlights:

1. Non-invasive Architecture: The core logic remains untouched. The i18n layer acts as a lightweight UI wrapper, ensuring zero side effects on the agent's performance or stability.
2. Seamless Migration: 100% backward compatible. Existing users will notice no change unless the LANG environment variable is explicitly set.
3. Robust Fallback: Implements a reliable fallback mechanism that defaults to English strings if a translation is missing or corrupted.
4. Onboarding Focus: Prioritizes the onboarding wizard and skill descriptions to improve accessibility for Chinese-speaking users.

Changes:
- Implemented a unified t() translation helper.
- Added locales/en.ts (base) and locales/zh.ts.
- Enabled language switching via LANG/LC_ALL environment variables.
- Added comprehensive documentation in i18n/README.md.

Testing: Lightly tested with LANG=zh_cn environment variable
Prompts: Used Claude 3.5 for translation assistance
2026-01-31 00:21:01 +08:00
Peter Steinberger
c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
eeae5ce7fd fix: stabilize notes and reasoning replay 2026-01-11 04:37:06 +01:00
Peter Steinberger
29884f8d6f fix: wrap clack notes for cleaner boxes 2026-01-11 04:23:43 +01:00
Peter Steinberger
89132fdd25 chore(lint): biome import order 2026-01-09 09:27:42 +01:00
Peter Steinberger
8d67bd2889 feat: apply lobster palette to prompts 2026-01-09 09:05:24 +01:00
Peter Steinberger
dc3e3f27d4 style: apply lint fixes 2026-01-08 04:44:15 +00:00
Peter Steinberger
28cd2e4c24 feat: refresh CLI output styling and progress 2026-01-08 05:20:39 +01:00
Peter Steinberger
53baba71fa feat: unify onboarding + config schema 2026-01-03 16:48:08 +01:00