GetUserLanguage returns the user's language preference from cache Uses the existing GetUserCache mechanism for efficiency
(userId int)
| 285 | // GetUserLanguage returns the user's language preference from cache |
| 286 | // Uses the existing GetUserCache mechanism for efficiency |
| 287 | func GetUserLanguage(userId int) string { |
| 288 | userCache, err := GetUserCache(userId) |
| 289 | if err != nil { |
| 290 | return "" |
| 291 | } |
| 292 | return userCache.GetSetting().Language |
| 293 | } |
nothing calls this directly
no test coverage detected