An ATproto social media client -- with an independent Appview.
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use non-pipe translation link (#740)

authored by

Ollie H and committed by
GitHub
deebe18a a911250e

+13 -3
+5 -1
src/view/com/post-thread/PostThreadItem.tsx
··· 99 99 100 100 const onOpenTranslate = React.useCallback(() => { 101 101 Linking.openURL( 102 - encodeURI(`https://translate.google.com/#auto|en|${record?.text || ''}`), 102 + encodeURI( 103 + `https://translate.google.com/?sl=auto&tl=en&text=${ 104 + record?.text || '' 105 + }`, 106 + ), 103 107 ) 104 108 }, [record]) 105 109
+3 -1
src/view/com/post/Post.tsx
··· 170 170 const onOpenTranslate = React.useCallback(() => { 171 171 Linking.openURL( 172 172 encodeURI( 173 - `https://translate.google.com/#auto|en|${record?.text || ''}`, 173 + `https://translate.google.com/?sl=auto&tl=en&text=${ 174 + record?.text || '' 175 + }`, 174 176 ), 175 177 ) 176 178 }, [record])
+5 -1
src/view/com/posts/FeedItem.tsx
··· 99 99 100 100 const onOpenTranslate = React.useCallback(() => { 101 101 Linking.openURL( 102 - encodeURI(`https://translate.google.com/#auto|en|${record?.text || ''}`), 102 + encodeURI( 103 + `https://translate.google.com/?sl=auto&tl=en&text=${ 104 + record?.text || '' 105 + }`, 106 + ), 103 107 ) 104 108 }, [record]) 105 109