@@ -37,6 +37,7 @@ import {
37
37
} from '#/lib/routes/types'
38
38
import { sanitizeDisplayName } from '#/lib/strings/display-names'
39
39
import { augmentSearchQuery } from '#/lib/strings/helpers'
40
+ import { languageName } from '#/locale/helpers'
40
41
import { logger } from '#/logger'
41
42
import { isNative , isWeb } from '#/platform/detection'
42
43
import { listenSoftReset } from '#/state/events'
@@ -328,7 +329,7 @@ function SearchLanguageDropdown({
328
329
} ) {
329
330
const t = useThemeNew ( )
330
331
const { _} = useLingui ( )
331
- const { contentLanguages} = useLanguagePrefs ( )
332
+ const { appLanguage , contentLanguages} = useLanguagePrefs ( )
332
333
333
334
const items = React . useMemo ( ( ) => {
334
335
return [
@@ -345,8 +346,8 @@ function SearchLanguageDropdown({
345
346
index === self . findIndex ( t => t . code2 === lang . code2 ) , // remove dupes (which will happen)
346
347
)
347
348
. map ( l => ( {
348
- label : l . name ,
349
- inputLabel : l . name ,
349
+ label : languageName ( l , appLanguage ) ,
350
+ inputLabel : languageName ( l , appLanguage ) ,
350
351
value : l . code2 ,
351
352
key : l . code2 + l . code3 ,
352
353
} ) )
@@ -365,7 +366,7 @@ function SearchLanguageDropdown({
365
366
return a . label . localeCompare ( b . label )
366
367
} ) ,
367
368
)
368
- } , [ _ , contentLanguages ] )
369
+ } , [ _ , appLanguage , contentLanguages ] )
369
370
370
371
const style = {
371
372
backgroundColor : t . atoms . bg_contrast_25 . backgroundColor ,
0 commit comments