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