mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-28 18:19:28 +00:00
A plugin ships its own locale bundles and registers them under its id — never editing core en.ts — exactly like ctx.storage namespaces persistence. The registry merges repeated registrations and drops a plugin's bundles on dispose (tracked by the loader like register/socket), resolving through the shared translator: active locale -> the plugin's own en -> the raw key. Two consumers, symmetric with core: usePluginI18n(id) for React UI (re-renders on a locale switch or a late registration) and a module-level t for handlers/stores. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||