MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / detect_ui_lang

Function detect_ui_lang

src/ui/http_server.c:95–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static const char *detect_ui_lang(const char *accept_language) {
96 if (accept_language && (strstr(accept_language, "zh-CN") || strstr(accept_language, "zh"))) {
97 return "zh";
98 }
99 return "en";
100}
101
102static void handle_ui_config(cbm_http_conn_t *c, const cbm_http_req_t *req) {
103 const char *lang = NULL;

Callers 1

handle_ui_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected