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

Function detect_ui_lang

src/ui/http_server.c:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static const char *detect_ui_lang(const char *accept_language) {
117 if (accept_language && (strstr(accept_language, "zh-CN") || strstr(accept_language, "zh"))) {
118 return "zh";
119 }
120 return "en";
121}
122
123static void handle_ui_config(cbm_http_conn_t *c, const cbm_http_req_t *req) {
124 const char *lang = NULL;

Callers 1

handle_ui_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected