{#if codes.length === 0}
A あ Я
{t('locales.empty')}
{:else}
{#each codes as code, i (code)} {@const m = meta(code)} {@const isPrimary = i === 0} {@const isShipped = SHIPPED.has(code)}
onDragStart(e, code)} ondragover={(e) => onDragOver(e, code)} ondrop={(e) => onDrop(e, code)} ondragend={onDragEnd} >
{m.native}
{m.name}
·
{code}
{#if isPrimary}
{t('locales.primary')}
{/if} {#if isShipped}
{t('locales.shipped')}
{/if}
{#if !isPrimary}
makePrimary(code)} aria-label={t('locales.makePrimary')} title={t('locales.makePrimary')} >
{/if}
moveUp(code)} disabled={i === 0} aria-label={t('locales.moveUp')} title={t('locales.moveUp')} >
moveDown(code)} disabled={i === codes.length - 1} aria-label={t('locales.moveDown')} title={t('locales.moveDown')} >
remove(code)} disabled={codes.length <= 1} aria-label={t('locales.remove')} title={codes.length <= 1 ? t('locales.removeLast') : t('locales.remove')} >
{/each}
{/if}
{ if (e.key === 'Enter') { e.preventDefault(); addCustom(); } }} placeholder={t('locales.customPlaceholder')} class="ls-add-custom-input" autocomplete="off" spellcheck="false" />
{t('locales.orderHint')}