You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b475fae
Browse filesBrowse the repository at this point in the historyBrowse files
fix(service-datasource): serve the driver catalog's words in the requester's language
GET /api/v1/datasources/drivers served every driver label, description and
connection field title/description in English, so a Chinese console's New
datasource dialog read Filename, Auto-migrate schema, Host and Port in English.
The route now reads the requester's language (Accept-Language, else ?locale)
and serves driverCatalogFor(locale), which negotiates through
resolveLocaleAmong and overlays a service-local zh-CN table on the English
catalog. Any word without a translation stays English.
Claude-Session: https://claude.ai/code/session_016WV4czJVaL8SDBxjng4RLk
Co-authored-by: Claude <noreply@anthropic.com>
fix(service-datasource): the datasource driver catalog serves its words in the requester's language, so the New datasource dialog reads in one language
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
`GET /api/v1/datasources/drivers` now serves each driver's label and description, and each connection field's `title` and `description` (Filename, Auto-migrate schema, Host, Port, …), in the language the request names: the top `Accept-Language` tag, else `?locale=`, matched by the platform's locale ladder (`resolveLocaleAmong`), so `zh`, `zh-cn` and `zh-SG` reach `zh-CN`. Simplified Chinese is translated for every offered driver. English requests, languages without a translation, and any word a translation leaves out are served the English text, never a key. `DRIVER_CATALOG` stays the English catalog, and the new `driverCatalogFor(locale)` in the package source builds the localized one; ids, icons, types and defaults are unchanged in every language.
0 commit comments