i18n: localize toasts

This commit is contained in:
Xylight committed 2024-06-04 13:02:05 -07:00
1 parent b57baa3769
commit e89d2aaddb
35 files changed
+169 -177

No files matched your search

+2 -2
View File
@@ -16,14 +16,14 @@
loading = true
try {
if (!(await validateInstance(instance)))
throw new Error('Failed to contact instance url')
throw new Error($t('toast.failInstanceURL'))
await getClient(instance).passwordReset({
email: email,
})
toast({
content: 'A password reset link was sent to your email.',
content: $t('toast.resetLink'),
type: 'success',
})
} catch (err) {