MCPcopy 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

13const { wsCache } = useCache()
14
15const getDefaultLocale = () => {
16 return wsCache.get('user.language') || getBrowserLocale() || 'zh-CN'
17}
18
19const messages = {
20 en: {

Callers 1

index.tsFile · 0.85

Calls 2

getBrowserLocaleFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected