From a445489b53725f3c87f6fa43b904015e910dbfea Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 14 Oct 2024 18:19:30 +0300 Subject: Translate some missing strings via global i18n instance (#5740) --- src/lib/sharing.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/sharing.ts') diff --git a/src/lib/sharing.ts b/src/lib/sharing.ts index a77b5ccca..c89d2d7a6 100644 --- a/src/lib/sharing.ts +++ b/src/lib/sharing.ts @@ -1,8 +1,10 @@ import {Share} from 'react-native' // import * as Sharing from 'expo-sharing' import {setStringAsync} from 'expo-clipboard' +// TODO: replace global i18n instance with one returned from useLingui -sfn +import {t} from '@lingui/macro' -import {isAndroid, isIOS} from 'platform/detection' +import {isAndroid, isIOS} from '#/platform/detection' import * as Toast from '#/view/com/util/Toast' /** @@ -20,6 +22,6 @@ export async function shareUrl(url: string) { // React Native Share is not supported by web. Web Share API // has increasing but not full support, so default to clipboard setStringAsync(url) - Toast.show('Copied to clipboard', 'clipboard-check') + Toast.show(t`Copied to clipboard`, 'clipboard-check') } } -- cgit 1.4.1