diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 9365aa7f..eeabd03e 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -118,7 +118,34 @@ "nsfw": "NSFW", "generateTitle": "Generate Title", "uploadImage": "Upload Image" - } + }, + "profile": { + "displayName": "Display name", + "bio": "Bio", + "avatar": "Avatar", + "banner": "Banner", + "email": "Email", + "matrix": "Matrix User", + "showNSFW": "Show NSFW content", + "scores": "Show Scores", + "bot": "Bot Account", + "showBots": "Show Bots", + "showRead": "Show Read Posts", + "currentPassword": "Current Password", + "newPassword": "New Password", + "verifyNewPassword": "Verify New Password", + "2fa": { + "totp": "TOTP", + "2fa": "2FA", + "paste": "Paste this in your authenticator app." + }, + "deleteAccount": { + "label": "Delete account", + "deleteContent": "Delete content", + "warning": "This will delete ALL of your submissions." + } + }, + "setup": "Setup" }, "routes": { "frontpage": { @@ -244,6 +271,11 @@ "next": "Next", "debug": "Debug", "refresh": "Refresh", - "jump": "Jump" + "jump": "Jump", + "save": "Save", + "enabled": "Enabled", + "disabled": "Disabled", + "enable": "Enable", + "disable": "Disable" } } diff --git a/src/routes/profile/(local_user)/password/+page.svelte b/src/routes/profile/(local_user)/password/+page.svelte index 66bfec04..0bca28f9 100644 --- a/src/routes/profile/(local_user)/password/+page.svelte +++ b/src/routes/profile/(local_user)/password/+page.svelte @@ -9,6 +9,8 @@ import { page } from '$app/stores' import Switch from '$lib/components/input/Switch.svelte' import { feature } from '$lib/version.js' + import { t } from '$lib/translations.js' + import Header from '$lib/components/ui/layout/pages/Header.svelte' export let data @@ -82,50 +84,55 @@ } -
- 2FA is - {totpEnabled ? 'enabled' : 'disabled'} + + {totpEnabled ? $t('common.enabled') : $t('common.disabled')}
{#if totpEnabled || totpLink} {#if totpLink && !totpEnabled} -