Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dataease/SQLBot
/ getDefaultLocale
Function
getDefaultLocale
frontend/src/i18n/index.ts:15–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
const
{ wsCache } = useCache()
14
15
const
getDefaultLocale = () => {
16
return
wsCache.get(
'user.language'
) || getBrowserLocale() ||
'zh-CN'
17
}
18
19
const
messages = {
20
en: {
Callers
1
index.ts
File · 0.85
Calls
2
getBrowserLocale
Function · 0.90
get
Method · 0.65
Tested by
no test coverage detected