i18n: localize toasts
This commit is contained in:
1 parent
b57baa3769
commit
e89d2aaddb
35 files changed
+169
-177
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user