GetUserLanguage returns the user's language preference from cache Uses the existing GetUserCache mechanism for efficiency
(userId int)
| 231 | // GetUserLanguage returns the user's language preference from cache |
| 232 | // Uses the existing GetUserCache mechanism for efficiency |
| 233 | func GetUserLanguage(userId int) string { |
| 234 | userCache, err := GetUserCache(userId) |
| 235 | if err != nil { |
| 236 | return "" |
| 237 | } |
| 238 | return userCache.GetSetting().Language |
| 239 | } |
nothing calls this directly
no test coverage detected