docs: add remote-only i18n solution docs and reference

新增远端完全替代本地语言包的国际化方案文档,并在原指南中添加对应引用,补充新文档到文档列表中。
This commit is contained in:
2026-06-29 17:47:24 +08:00
parent 04a1d3c287
commit 32db276e68
2 changed files with 1373 additions and 0 deletions

View File

@@ -297,6 +297,8 @@ $lang('hello', { name: 'Tom' }); // 你好,{name} → 你好,Tom
- 拉取失败时不抛错,静默使用本地兜底,并触发 `lang:fallback` 事件。
- 切换语言/租户时自动清理对应缓存并重新拉取。
> 扩展方案:若希望远端语言包完全替代本地语言包(即删除 `lang/` 目录后仍能正常运行),参见 `docs/i18n-remote-only-solution.md`。
### 6.3 覆写数据格式
后端返回的 `overrides` 是一个扁平 map,key 为点分路径,value 为字符串:
@@ -391,6 +393,7 @@ npm run i18n:check
| `scripts/verify-p2-keys.js` | 动态 key 枚举验证 |
| `docs/i18n-audit-report.md` | 全量审计报告 |
| `docs/i18n-p2-solution-plan.md` | P2 动态 key 处理方案 |
| `docs/i18n-remote-only-solution.md` | 远端完全替代本地语言包方案 |
| `docs/i18n-guidelines.md` | 本说明文档 |
---

File diff suppressed because it is too large Load Diff