File tree Expand file tree Collapse file tree
components/SelectionList/ListItem
pages/settings/Preferences Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ function BaseListItem<TItem extends ListItem>({
104104 // eslint-disable-next-line react/jsx-props-no-spreading
105105 { ...bind }
106106 ref = { pressableRef }
107+ lang = { item . lang }
108+ accessibilityLanguage = { item . lang }
107109 onLongPress = { ( ) => {
108110 onLongPressRow ?.( item ) ;
109111 } }
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ type ListItem<K extends string | number = string> = {
140140
141141 /** Used to initiate payment from search page */
142142 hash ?: number ;
143+
144+ /** BCP 47 language tag for screen reader pronunciation (maps to HTML lang attribute on web) */
145+ lang ?: string ;
143146} ;
144147
145148type CommonListItemProps < TItem extends ListItem > = {
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function LanguagePage() {
2828 accessibilityLabel : LOCALE_TO_LANGUAGE_STRING [ locale ] ,
2929 keyForList : locale ,
3030 isSelected : preferredLocale === locale ,
31+ lang : locale ,
3132 } ) ) ;
3233 } , [ preferredLocale ] ) ;
3334
You can’t perform that action at this time.
0 commit comments