File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/components/LanguagePicker Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import type { LocaleDisplayInfo } from "@/lib/types"
7
7
import { cn } from "@/lib/utils/cn"
8
8
9
9
import { CommandItem } from "../ui/command"
10
- import { Tag } from "../ui/tag"
11
10
12
11
import ProgressBar from "./ProgressBar"
13
12
@@ -24,7 +23,6 @@ const MenuItem = ({ displayInfo, ...props }: ItemProps) => {
24
23
targetName,
25
24
approvalProgress,
26
25
wordsApproved,
27
- isBrowserDefault,
28
26
} = displayInfo
29
27
const { t } = useTranslation ( "common" )
30
28
const locale = useLocale ( )
@@ -64,11 +62,6 @@ const MenuItem = ({ displayInfo, ...props }: ItemProps) => {
64
62
>
65
63
{ targetName }
66
64
</ p >
67
- { isBrowserDefault && (
68
- < Tag variant = "outline" size = "small" >
69
- { t ( "page-languages-browser-default" ) }
70
- </ Tag >
71
- ) }
72
65
</ div >
73
66
< p className = "text-xs uppercase text-body" > { sourceName } </ p >
74
67
</ div >
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ export const useLanguagePicker = (handleClose?: () => void) => {
59
59
if ( indexA >= 0 && indexB >= 0 ) return indexA - indexB
60
60
if ( indexA >= 0 ) return - 1
61
61
if ( indexB >= 0 ) return 1
62
- return b . approvalProgress - a . approvalProgress
62
+
63
+ return a . sourceName . localeCompare ( b . sourceName )
63
64
} ) || [ ]
64
65
)
65
66
} , [ locale , t ] )
You can’t perform that action at this time.
0 commit comments