Merge branch 'main' of github.com:bluesky-social/social-app into main

zio/stable
Paul Frazee 2023-12-28 13:43:01 -08:00
commit 23c9c8977b
7 changed files with 37 additions and 17 deletions

View File

@ -119,8 +119,9 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
// DISABLED until this translation is fixed -prf // DISABLED until this translation is fixed -prf
// case 'de': // case 'de':
// return AppLanguage.de // return AppLanguage.de
case 'es': // DISABLED until this translation is more thoroughly reviewed -prf
return AppLanguage.es // case 'es':
// return AppLanguage.es
default: default:
continue continue
} }

View File

@ -8,7 +8,8 @@ import {messages as messagesJa} from '#/locale/locales/ja/messages'
import {messages as messagesFr} from '#/locale/locales/fr/messages' import {messages as messagesFr} from '#/locale/locales/fr/messages'
// DISABLED until this translation is fixed -prf // DISABLED until this translation is fixed -prf
// import {messages as messagesDe} from '#/locale/locales/de/messages' // import {messages as messagesDe} from '#/locale/locales/de/messages'
import {messages as messagesEs} from '#/locale/locales/es/messages' // DISABLED until this translation is more thoroughly reviewed -prf
// import {messages as messagesEs} from '#/locale/locales/es/messages'
import {sanitizeAppLanguageSetting} from '#/locale/helpers' import {sanitizeAppLanguageSetting} from '#/locale/helpers'
import {AppLanguage} from '#/locale/languages' import {AppLanguage} from '#/locale/languages'
@ -35,10 +36,11 @@ export async function dynamicActivate(locale: AppLanguage) {
// i18n.loadAndActivate({locale, messages: messagesDe}) // i18n.loadAndActivate({locale, messages: messagesDe})
// break // break
// } // }
case AppLanguage.es: { // DISABLED until this translation is more thoroughly reviewed -prf
i18n.loadAndActivate({locale, messages: messagesEs}) // case AppLanguage.es: {
break // i18n.loadAndActivate({locale, messages: messagesEs})
} // break
// }
default: { default: {
i18n.loadAndActivate({locale, messages: messagesEn}) i18n.loadAndActivate({locale, messages: messagesEn})
break break

View File

@ -29,10 +29,11 @@ export async function dynamicActivate(locale: AppLanguage) {
// mod = await import(`./locales/de/messages`) // mod = await import(`./locales/de/messages`)
// break // break
// } // }
case AppLanguage.es: { // DISABLED until this translation is more thoroughly reviewed -prf
mod = await import(`./locales/es/messages`) // case AppLanguage.es: {
break // mod = await import(`./locales/es/messages`)
} // break
// }
default: { default: {
mod = await import(`./locales/en/messages`) mod = await import(`./locales/en/messages`)
break break

View File

@ -11,7 +11,8 @@ export enum AppLanguage {
fr = 'fr', fr = 'fr',
// DISABLED until this translation is fixed -prf // DISABLED until this translation is fixed -prf
// de = 'de', // de = 'de',
es = 'es', // DISABLED until this translation is more thoroughly reviewed -prf
// es = 'es',
} }
interface AppLanguageConfig { interface AppLanguageConfig {
@ -26,7 +27,8 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
{code2: AppLanguage.fr, name: 'Français'}, {code2: AppLanguage.fr, name: 'Français'},
// DISABLED until this translation is fixed -prf // DISABLED until this translation is fixed -prf
// {code2: AppLanguage.de, name: 'Deutsch'}, // {code2: AppLanguage.de, name: 'Deutsch'},
{code2: AppLanguage.es, name: 'Español'}, // DISABLED until this translation is more thoroughly reviewed -prf
// {code2: AppLanguage.es, name: 'Español'},
] ]
export const LANGUAGES: Language[] = [ export const LANGUAGES: Language[] = [

View File

@ -11,6 +11,7 @@ import {
FontAwesomeIcon, FontAwesomeIcon,
FontAwesomeIconStyle, FontAwesomeIconStyle,
} from '@fortawesome/react-native-fontawesome' } from '@fortawesome/react-native-fontawesome'
import {HITSLOP_10} from 'lib/constants'
import {MagnifyingGlassIcon} from 'lib/icons' import {MagnifyingGlassIcon} from 'lib/icons'
import {useTheme} from 'lib/ThemeContext' import {useTheme} from 'lib/ThemeContext'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
@ -71,7 +72,8 @@ export function SearchInput({
onPress={onPressCancelSearchInner} onPress={onPressCancelSearchInner}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={_(msg`Clear search query`)} accessibilityLabel={_(msg`Clear search query`)}
accessibilityHint=""> accessibilityHint=""
hitSlop={HITSLOP_10}>
<FontAwesomeIcon <FontAwesomeIcon
icon="xmark" icon="xmark"
size={16} size={16}

View File

@ -494,6 +494,8 @@ export function FeedsScreen(_props: Props) {
// @ts-ignore our .web version only -prf // @ts-ignore our .web version only -prf
desktopFixedHeight desktopFixedHeight
scrollIndicatorInsets={{right: 1}} scrollIndicatorInsets={{right: 1}}
keyboardShouldPersistTaps="handled"
keyboardDismissMode="on-drag"
/> />
{hasSession && ( {hasSession && (

View File

@ -162,6 +162,8 @@ function SearchScreenSuggestedFollows() {
// @ts-ignore web only -prf // @ts-ignore web only -prf
desktopFixedHeight desktopFixedHeight
contentContainerStyle={{paddingBottom: 1200}} contentContainerStyle={{paddingBottom: 1200}}
keyboardShouldPersistTaps="handled"
keyboardDismissMode="on-drag"
/> />
) : ( ) : (
<CenteredView sideBorders style={[pal.border, s.hContentRegion]}> <CenteredView sideBorders style={[pal.border, s.hContentRegion]}>
@ -578,7 +580,8 @@ export function SearchScreen(
onPress={onPressClearQuery} onPress={onPressClearQuery}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={_(msg`Clear search query`)} accessibilityLabel={_(msg`Clear search query`)}
accessibilityHint=""> accessibilityHint=""
hitSlop={HITSLOP_10}>
<FontAwesomeIcon <FontAwesomeIcon
icon="xmark" icon="xmark"
size={16} size={16}
@ -590,7 +593,10 @@ export function SearchScreen(
{query || inputIsFocused ? ( {query || inputIsFocused ? (
<View style={styles.headerCancelBtn}> <View style={styles.headerCancelBtn}>
<Pressable onPress={onPressCancelSearch} accessibilityRole="button"> <Pressable
onPress={onPressCancelSearch}
accessibilityRole="button"
hitSlop={HITSLOP_10}>
<Text style={[pal.text]}> <Text style={[pal.text]}>
<Trans>Cancel</Trans> <Trans>Cancel</Trans>
</Text> </Text>
@ -604,7 +610,11 @@ export function SearchScreen(
{isFetching ? ( {isFetching ? (
<Loader /> <Loader />
) : ( ) : (
<ScrollView style={{height: '100%'}} dataSet={{stableGutters: '1'}}> <ScrollView
style={{height: '100%'}}
dataSet={{stableGutters: '1'}}
keyboardShouldPersistTaps="handled"
keyboardDismissMode="on-drag">
{searchResults.length ? ( {searchResults.length ? (
searchResults.map((item, i) => ( searchResults.map((item, i) => (
<SearchResultCard <SearchResultCard