mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-01 02:02:20 +00:00
Implement the Wave 1 platform layer per I18N_TECH_DESIGN/ADR (docs/i18n):
- src/i18n/** : lazy i18next singleton, readiness-gated I18nProvider that syncs
<html lang>, locale detection/normalization (zh->zh-CN), cookie+localStorage
preferences under the unified 'litellm.locale' key (P5), and the namespace
registry (single source of truth, Agent-4-owned).
- src/locales/{en,zh-CN}/** : 8 namespace skeletons (common/navigation/auth/
models/apiKeys/usage/cost/budgets) with matching key sets.
- Wire I18nProvider into the root layout as the outermost provider.
- Add LanguageSwitcher EN/中文 toggle component.
- Add Playwright E2E scaffolding (tests/e2e/ui) and deps
(i18next, react-i18next, @playwright/test) via Agent 4 as single writer.
- Tests: 33 unit + 7 integration passing; next build green.
Note: strict typed keys intentionally relaxed to string (see types.d.ts) —
runtime readiness gate + A7 check-keys CI guarantee key correctness.
|
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||