message param

This commit is contained in:
Benjamin Palko 2024-12-20 10:46:15 -05:00
parent b11452e35c
commit cb6d86945f
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"greeting": "Hello"
"greeting": "Hello {name}!"
}

View file

@ -3,7 +3,7 @@
let { title, username }: { title: string; username: string } = $props();
let message = $derived(`${messages.greeting()} ${username}!`);
let message = $derived(messages.greeting({ name: username }));
</script>
<header class="navbar justify-between bg-base-200 px-4">