css refactor
This commit is contained in:
@@ -7,25 +7,22 @@
|
||||
@RELATION: BINDS_TO -> i18n.locale
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
<script>
|
||||
// [SECTION: IMPORTS]
|
||||
import { locale } from '$lib/i18n';
|
||||
import Select from './Select.svelte';
|
||||
import { locale } from "$lib/i18n";
|
||||
import Select from "./Select.svelte";
|
||||
// [/SECTION: IMPORTS]
|
||||
|
||||
const options = [
|
||||
{ value: 'ru', label: 'Русский' },
|
||||
{ value: 'en', label: 'English' }
|
||||
{ value: "ru", label: "Русский" },
|
||||
{ value: "en", label: "English" },
|
||||
];
|
||||
</script>
|
||||
|
||||
<!-- [SECTION: TEMPLATE] -->
|
||||
<div class="w-32">
|
||||
<Select
|
||||
bind:value={$locale}
|
||||
{options}
|
||||
/>
|
||||
<Select bind:value={$locale} {options} />
|
||||
</div>
|
||||
<!-- [/SECTION: TEMPLATE] -->
|
||||
|
||||
<!-- [/DEF:LanguageSwitcher:Component] -->
|
||||
<!-- [/DEF:LanguageSwitcher:Component] -->
|
||||
|
||||
Reference in New Issue
Block a user