Commit 6ea9935
fix: add i18n route bridges to dispatcher plugin
The createDispatcherPlugin() bridges all service domains (auth, analytics,
packages, storage, automation) from HttpDispatcher to the HTTP server, but
i18n was missing. When no explicit I18nServicePlugin is loaded (kernel uses
memory fallback i18n), no i18n HTTP routes were registered, causing 404.
Add 3 i18n route bridges consistent with all other service domains:
- GET /api/v1/i18n/locales
- GET /api/v1/i18n/translations/:locale
- GET /api/v1/i18n/labels/:object/:locale
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 32ea51a commit 6ea9935
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
240 | 270 | | |
241 | 271 | | |
242 | 272 | | |
| |||
0 commit comments