This commit is contained in:
Timothy Jaeryang Baek committed 2026-10-10 21:28:33 +04:00
1 parent a69722f932
commit 79d376a1f3
3 files changed
+94 -5

No files matched your search

@@ -13,7 +13,7 @@
import Check from '$lib/components/icons/Check.svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import Knobs from '$lib/components/icons/Knobs.svelte';
import { resolveLocalizedModelName } from '$lib/utils/localizedContent';
import { localizeModelControls, resolveLocalizedModelName } from '$lib/utils/localizedContent';
const i18n: any = getContext('i18n');
export let selectedModels: string[] = [];
@@ -143,7 +143,7 @@
{resolveLocalizedModelName(model, $i18n.language)}
</div>
{/if}
{#each Object.entries(model.info?.params?.model_controls ?? {}) as [key, control] (key)}
{#each Object.entries(localizeModelControls(model, $i18n.language)) as [key, control] (key)}
{#if control.display === 'slider'}
<ModelControlSlider
{control}