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:
DS Boyce
2026-03-04 18:37:44 -08:00
committed by GitHub
parent 1782a65174
commit afbade6f6f
25 changed files with 1014 additions and 1639 deletions
@@ -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(