Commit 36a5042
fix(i18n): return flat translations dict from kernel service getTranslations
The createKernel i18n service's getTranslations was returning
{ locale, translations } instead of the flat Record<string, any>
expected by the spec II18nService interface. The HttpDispatcher
wraps the return in { data: { locale, translations } }, so the
extra layer caused /api/v1/i18n/translations/:lang to return
empty translations. Now returns resolveI18nTranslations() directly.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/a9fb6c1a-aac9-485a-afb5-952077e8f7711 parent 9d618b4 commit 36a5042
2 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 336 | + | |
340 | 337 | | |
341 | 338 | | |
342 | 339 | | |
| |||
0 commit comments