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 -1
View File
@@ -17,6 +17,7 @@
Icon,
} from 'svelte-hero-icons'
import ColorSwatch from './ColorSwatch.svelte'
import { t } from '$lib/translations'
const c = defaultColors
@@ -36,7 +37,7 @@
throw new Error('Import is empty')
}
$colors = JSON.parse(importText)
toast({ content: 'Import successful', type: 'success' })
toast({ content: $t('message.success'), type: 'success' })
importing = false
} catch (err) {
// @ts-ignore