···49export const IS_HIGH_DPI: boolean = true
50// ideally we'd use isLiquidGlassAvailable() from expo-glass-effect but checking iOS version is good enough for now
51export const IS_LIQUID_GLASS: boolean = iOSMajorVersion >= 26
000
···49export const IS_HIGH_DPI: boolean = true
50// ideally we'd use isLiquidGlassAvailable() from expo-glass-effect but checking iOS version is good enough for now
51export const IS_LIQUID_GLASS: boolean = iOSMajorVersion >= 26
52+// So we can avoid attempting on-device translation when we know it's unsupported.
53+export const HAS_ON_DEVICE_TRANSLATION: boolean =
54+ (IS_IOS && iOSMajorVersion >= 18) || IS_ANDROID
···6import {IS_ANDROID} from '#/env'
78/**
9- * Will always link out to Google Translate. If inline translation is desired,
10- * use `useTranslateOnDevice`
11 */
12-export function useTranslate() {
13 const openLink = useOpenLink()
1415 return useCallback(
···6import {IS_ANDROID} from '#/env'
78/**
9+ * @deprecated Will always link out to Google Translate. Prefer `useTranslate`.
010 */
11+export function useGoogleTranslate() {
12 const openLink = useOpenLink()
1314 return useCallback(