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
@@ -32,7 +32,7 @@
import { removeItem } from '$lib/util.js'
import Section from './Section.svelte'
import ToggleSetting from './ToggleSetting.svelte'
import { locales } from '$lib/translations'
import { locales, t } from '$lib/translations'
</script>
<svelte:head>
@@ -43,7 +43,7 @@
Settings <Button
on:click={() => {
toast({
content: 'Are you sure you want to reset your settings to the default?',
content: $t('toast.resetSettings'),
action: () => ($userSettings = defaultSettings),
})
}}