1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 15:04:43 +00:00

feat: add link to API docs on API key page

This commit is contained in:
Elias Schneider
2025-10-04 23:45:37 +02:00
parent ad8a90c839
commit 2c74865173
2 changed files with 7 additions and 2 deletions

View File

@@ -135,7 +135,7 @@
"name_passkey": "Name Passkey",
"name_your_passkey_to_easily_identify_it_later": "Name your passkey to easily identify it later.",
"create_api_key": "Create API Key",
"add_a_new_api_key_for_programmatic_access": "Add a new API key for programmatic access.",
"add_a_new_api_key_for_programmatic_access": "Add a new API key for programmatic access to the <link href='https://pocket-id.org/docs/api'>Pocket ID API</link>.",
"add_api_key": "Add API Key",
"manage_api_keys": "Manage API Keys",
"api_key_created": "API Key Created",

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import FormattedMessage from '$lib/components/formatted-message.svelte';
import { Button } from '$lib/components/ui/button';
import * as Card from '$lib/components/ui/card';
import { m } from '$lib/paraglide/messages';
@@ -48,7 +49,11 @@
<ShieldPlus class="text-primary/80 size-5" />
{m.create_api_key()}
</Card.Title>
<Card.Description>{m.add_a_new_api_key_for_programmatic_access()}</Card.Description>
<Card.Description
><FormattedMessage
m={m.add_a_new_api_key_for_programmatic_access()}
/></Card.Description
>
</div>
{#if !expandAddApiKey}
<Button onclick={() => (expandAddApiKey = true)}>{m.add_api_key()}</Button>