This commit is contained in:
vcoppe
2025-06-21 21:07:36 +02:00
parent f0230d4634
commit 1cc07901f6
803 changed files with 7937 additions and 6329 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { isMac, isSafari } from '$lib/utils';
import { onMount } from 'svelte';
import { _ } from '$lib/i18n';
import { i18n } from '$lib/i18n.svelte';
export let key: string | undefined = undefined;
export let shift: boolean = false;
@@ -25,12 +25,12 @@
<span></span>
{/if}
{#if ctrl}
<span>{mac && !safari ? '⌘' : $_('menu.ctrl') + '+'}</span>
<span>{mac && !safari ? '⌘' : i18n._('menu.ctrl') + '+'}</span>
{/if}
{#if key}
<span class={key === '+' ? 'font-medium text-sm/4' : ''}>{key}</span>
{/if}
{#if click}
<span>{$_('menu.click')}</span>
<span>{i18n._('menu.click')}</span>
{/if}
</div>