about summary refs log tree commit diff
path: root/src/lib/sharing.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-14 18:19:30 +0300
committerGitHub <noreply@github.com>2024-10-14 18:19:30 +0300
commita445489b53725f3c87f6fa43b904015e910dbfea (patch)
treec0ad930f53c7136ad0561c4b3b6398d78661caa5 /src/lib/sharing.ts
parentdb7b875c52b31a8c64859ca8e3e4c9e08c18f13e (diff)
downloadvoidsky-a445489b53725f3c87f6fa43b904015e910dbfea.tar.zst
Translate some missing strings via global i18n instance (#5740)
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')
   }
 }