• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CaptainFact / captain-fact-frontend / 23707196545

29 Mar 2026 10:37AM UTC coverage: 1.643% (-3.8%) from 5.41%
23707196545

push

github

web-flow
Full codebase refactor (#1408)

26 of 1755 branches covered (1.48%)

Branch coverage included in aggregate %.

1 of 1101 new or added lines in 65 files covered. (0.09%)

62 existing lines in 25 files now uncovered.

39 of 2202 relevant lines covered (1.77%)

0.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/components/LoggedInUser/UserLanguageSelector.jsx
1
import React from 'react'
2

3
import { updateUserInfo } from '../../API/http_api/current_user'
4
import { useUserPreferences } from '../../contexts/UserPreferencesContext'
5
import i18n from '../../i18n/i18n'
6
import LanguageSelector from '../App/LanguageSelector'
7
import { withLoggedInUser } from './UserProvider'
8

9
/**
10
 * Updates the locale for loggedInUser, notify i18n to refresh the
11
 * interface.
12
 */
13
const UserLanguageSelector = ({ isAuthenticated, updateLoggedInUser, className, size }) => {
×
NEW
14
  const { locale, changeLocale } = useUserPreferences()
×
15

UNCOV
16
  return (
×
17
    <LanguageSelector
18
      className={className}
19
      value={locale || i18n.language}
×
20
      size={size}
21
      withIcon
22
      handleChange={(locale) => {
NEW
23
        changeLocale(locale)
×
24
        if (isAuthenticated) {
×
25
          return updateUserInfo({ locale }).then((user) => {
×
26
            updateLoggedInUser(user)
×
27
          })
28
        }
29
      }}
30
    />
31
  )
32
}
33

34
export default withLoggedInUser(UserLanguageSelector)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc