Refine UX for on-device translation for posts (#9987)
Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
@@ -6,10 +6,9 @@ import {getTranslatorLink} from '#/locale/helpers'
|
||||
import {IS_ANDROID} from '#/env'
|
||||
|
||||
/**
|
||||
* Will always link out to Google Translate. If inline translation is desired,
|
||||
* use `useTranslateOnDevice`
|
||||
* @deprecated Will always link out to Google Translate. Prefer `useTranslate`.
|
||||
*/
|
||||
export function useTranslate() {
|
||||
export function useGoogleTranslate() {
|
||||
const openLink = useOpenLink()
|
||||
|
||||
return useCallback(
|
||||
Reference in New Issue
Block a user