Web app to Svelte5 (#540)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-01-09 21:22:34 -05:00
1 parent 9eeb9fcffe
commit c534c27ae3
35 files changed
+1724 -2331

No files matched your search

@@ -1,6 +1,6 @@
<script lang="ts">
import { PlayletApi } from "lib/Api/PlayletApi";
import { tr, userPreferencesStore } from "lib/Stores";
import { translate, userPreferencesStore } from "lib/Stores";
const textSizes = ["text-2xl", "text-lg", "text-base", "text-sm", "text-xs"];
@@ -24,13 +24,13 @@
</script>
<div class="m-5">
<div class={textSizes[level]}>{$tr(displayText)}</div>
<div class="text-xs text-gray-500">{@html $tr(description)}</div>
<div class={textSizes[level]}>{$translate(displayText)}</div>
<div class="text-xs text-gray-500">{@html $translate(description)}</div>
{#each options as option}
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">{$tr(option.displayText)}</span>
<span class="label-text">{$translate(option.displayText)}</span>
<input
type="radio"
name={key}