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

CaptainFact / captain-fact-frontend / 20020625706

08 Dec 2025 07:49AM UTC coverage: 2.865% (-2.5%) from 5.41%
20020625706

push

github

Betree
refact: Move everythin to GraphQL, remove redux

38 of 2352 branches covered (1.62%)

Branch coverage included in aggregate %.

0 of 922 new or added lines in 45 files covered. (0.0%)

32 existing lines in 8 files now uncovered.

125 of 3338 relevant lines covered (3.74%)

0.11 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 i18n from '../../i18n/i18n'
5
import { useUserPreferences } from '../../contexts/UserPreferencesContext'
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