about summary refs log tree commit diff
path: root/src/lib/sharing.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sharing.ts')
-rw-r--r--src/lib/sharing.ts6
1 files changed, 4 insertions, 2 deletions
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')
   }
 }