i18n: localize profile page

This commit is contained in:
Xylight committed 2024-06-03 16:12:41 -07:00
1 parent f9935cee32
commit ae0800b8b7
4 files changed
+78 -59

No files matched your search

+7 -1
View File
@@ -3,6 +3,7 @@
import { page } from '$app/stores'
import MultiSelect from '$lib/components/input/Switch.svelte'
import { t } from '$lib/translations'
</script>
<svelte:head>
@@ -17,7 +18,12 @@
'/profile/blocks',
'/profile/password',
]}
optionNames={['User', 'Settings', 'Blocks', 'Credentials']}
optionNames={[
$t('routes.profile.user'),
$t('routes.profile.settings'),
$t('routes.profile.blocks'),
$t('routes.profile.credentials'),
]}
selected={$page.url.pathname}
on:select={(e) => {
goto(e.detail)