i18n: localize accounts page
This commit is contained in:
1 parent
ae0800b8b7
commit
8278cff51e
2 files changed
+20
-9
No files matched your search
+10
-3
@@ -39,7 +39,12 @@
|
||||
"logout": "Log Out",
|
||||
"signup": "Sign Up",
|
||||
"accounts": "Accounts",
|
||||
"changeinstance": "Change Instance"
|
||||
"changeinstance": "Change Instance",
|
||||
"resetColor": "Reset Color",
|
||||
"addGuest": "Add Guest",
|
||||
"moveUp": "Move Up",
|
||||
"moveDown": "Move Down",
|
||||
"guest": "Guest"
|
||||
},
|
||||
"filter": {
|
||||
"location": {
|
||||
@@ -107,7 +112,8 @@
|
||||
"blocks": "Blocks",
|
||||
"credentials": "Credentials",
|
||||
"moderates": "Moderates"
|
||||
}
|
||||
},
|
||||
"accounts": "Accounts"
|
||||
},
|
||||
"cards": {
|
||||
"site": {
|
||||
@@ -155,6 +161,7 @@
|
||||
},
|
||||
"common": {
|
||||
"back": "Back",
|
||||
"next": "Next"
|
||||
"next": "Next",
|
||||
"debug": "Debug"
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,8 @@
|
||||
} from 'svelte-hero-icons'
|
||||
import { flip } from 'svelte/animate'
|
||||
import { expoInOut, expoOut } from 'svelte/easing'
|
||||
import { t } from '$lib/translations'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
|
||||
let newInstance: string = $profileData.defaultInstance ?? DEFAULT_INSTANCE_URL
|
||||
let loading = false
|
||||
@@ -183,7 +185,7 @@
|
||||
{:else}
|
||||
<div class="flex flex-col h-full gap-4">
|
||||
<div class="flex flex-row justify-between">
|
||||
<h1 class="text-2xl font-bold">Accounts</h1>
|
||||
<Header>{$t('routes.accounts')}</Header>
|
||||
</div>
|
||||
<EditableList
|
||||
on:action={(acc) => {
|
||||
@@ -256,6 +258,7 @@
|
||||
<Button
|
||||
size="square-md"
|
||||
color="secondary"
|
||||
title={$t('account.moveUp')}
|
||||
on:click={() => moveProfile(profile.id, true)}
|
||||
>
|
||||
<Icon src={ChevronUp} size="16" mini slot="prefix" />
|
||||
@@ -263,6 +266,7 @@
|
||||
<Button
|
||||
size="square-md"
|
||||
color="secondary"
|
||||
title={$t('account.moveDown')}
|
||||
on:click={() => moveProfile(profile.id, false)}
|
||||
>
|
||||
<Icon src={ChevronDown} size="16" mini slot="prefix" />
|
||||
@@ -273,7 +277,7 @@
|
||||
on:click={() => (profile.color = undefined)}
|
||||
>
|
||||
<Icon src={ArrowUturnLeft} size="16" mini slot="prefix" />
|
||||
Reset Color
|
||||
{$t('account.resetColor')}
|
||||
</MenuButton>
|
||||
{#if $userSettings.debugInfo}
|
||||
<MenuButton
|
||||
@@ -283,12 +287,12 @@
|
||||
}}
|
||||
>
|
||||
<Icon src={BugAnt} size="16" mini slot="prefix" />
|
||||
Debug Info
|
||||
{$t('common.debug')}
|
||||
</MenuButton>
|
||||
{/if}
|
||||
<MenuButton on:click={() => action(profile)} color="danger-subtle">
|
||||
<Icon slot="prefix" src={ArrowRightOnRectangle} size="16" mini />
|
||||
Log Out
|
||||
{$t('account.logout')}
|
||||
</MenuButton>
|
||||
</Menu>
|
||||
</div>
|
||||
@@ -298,11 +302,11 @@
|
||||
<div class="flex items-center gap-2">
|
||||
<Button href="/login" size="lg" class="flex-1">
|
||||
<Icon slot="prefix" src={ArrowLeftOnRectangle} size="16" mini />
|
||||
Log In
|
||||
{$t('account.login')}
|
||||
</Button>
|
||||
<Button href="/login/guest" size="lg">
|
||||
<Icon slot="prefix" src={Plus} size="16" mini />
|
||||
Add Guest
|
||||
{$t('account.addGuest')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user