<script lang="ts">
import { plural, t } from "@palamedes/core/macro";
const title = t`Choose your tickets`;
let quantity = $state(1);
const label = $derived(plural(quantity, {
one: "# ticket", other: "# tickets",
}));
</script>
<h1>{title}</h1>
<button onclick={() => quantity++}>{label}</button>Put palamedes({ framework: "none", mdx: false }) before the official Svelte plugin. Inline JavaScript and TypeScript instance and module scripts support core macros. Import macros in the script block that uses them; module-level calls belong inside functions. The native CLI preserves source locations, and the transform retains source maps.