2 import { locale, locales } from 'svelte-i18n';
3 import { getLangNameFromCode } from 'language-name-map';
5 $: namedLocales = $locales
8 ...getLangNameFromCode(code)
11 if (a.native > b.native) {
15 if (a.native < b.native) {
22 let selected = $locale;
29 <select bind:value={selected}>
30 {#each namedLocales as namedLocale}
31 <option value={namedLocale.code}>{namedLocale.native}</option>