Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
supun-io committed Nov 4, 2023
1 parent fc58579 commit 5a46aca
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { onMount } from "svelte";
import { onMount, setContext } from "svelte";
onMount(() => {
setContext('i18n', 'not set');
})
</script>

7 changes: 6 additions & 1 deletion src/lib/marketing/Footer/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
{ email }
</Link>
<Tooltip text={emailCopied ? "Copied!" : "Copy email"} position="top">
<IconButton size="small" color="invisible" on:click={handleCopy}>
<IconButton
size="small"
color="invisible"
on:click={handleCopy}
on:mouseleave={() => emailCopied = false}
>
<IconCopy size={12} />
</IconButton>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script lang="ts">
import T from '$lib/components/Internationalization/T.svelte';
import Base from '$lib/components/Base/Base.svelte';
</script>

<T />
<Base>
<slot />
</Base>
File renamed without changes.
8 changes: 8 additions & 0 deletions src/routes/demo/i18n/[[lang]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts">
import { getContext } from 'svelte'
const i18n = getContext('i18n')
console.log(i18n)
</script>

Hello World

0 comments on commit 5a46aca

Please sign in to comment.