add toasts keys i18n

This commit is contained in:
SimonOriginal
2024-06-24 18:09:45 +02:00
parent 3d1de6144e
commit 665f87e84a
41 changed files with 191 additions and 6 deletions

View File

@@ -75,7 +75,7 @@
if (position) {
await updateUserInfo(localStorage.token, { location: position });
toast.success('User location successfully retrieved.');
toast.success($i18n.t('User location successfully retrieved.'));
} else {
userLocation = false;
}
@@ -111,7 +111,7 @@
saveSettings({ responseAutoCopy: responseAutoCopy });
} else {
toast.error(
'Clipboard write permission denied. Please check your browser settings to grant the necessary access.'
$i18n.t('Clipboard write permission denied. Please check your browser settings to grant the necessary access.')
);
}
};