sufone / layl

🌙 Calculator for tahajjud, qiyam, and worship & sleep in an Islamic night!

Home Page:https://layl.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language picker

mr-islam opened this issue · comments

Think of UI… at the top right or is that too hard to notice? (or is that not a problem since we fetch the browser local?)

Do we use flags? Emojis? Emojis should be good

What about for Arabic… what country's flag? I guess Egypt since it's the largest in population?

Implementation seems easy enough: https://github.com/kaisermann/svelte-i18n/blob/main/docs/Locale.md

<script>
  import { locale, locales } from 'svelte-i18n'
</script>

<select bind:value={$locale}>
  {#each $locales as locale}
    <option value={locale}>{locale}</option>
  {/each}
</select>

Can be at the top right as a flag only with dropdown for users already logged in, and for first time users it can be below the "Share location" button maybe in an expanded form with langauge name+ emoji flag? OR somewhere central but above/below other things