Skip to content

Commit

Permalink
🐛 fixed symbols for country flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ohheyitsdave committed Apr 7, 2021
1 parent cf494c7 commit 3168e54
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/LanguageSwitcher.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
}
const langauges = [
"en", "de", "fr", "it", "sk", "ru", "cz", "bg", "pl", "es", "nl", "ua", "se", "pt", "ja", "zh", "da", "el", "et", "hu", "lt", "lv", "ro", "sl"
"en", "de", "fr", "it", "sk", "ru", "cz", "bg", "pl", "es", "nl", "ua", "se", "pt", "ja", "zh", "da", "el", "et", "hu", "lt", "ro", "sl"
]
</script>

<div class="md:relative z-50">
<button class="text-gray-500 inline-flex items-center text-base leading-6 font-medium hover:text-gray-900 transition ease-in-out duration-150" on:click={menuToggle}
<button class="text-gray-500 inline-flex items-center text-base leading-6 font-medium hover:text-gray-900 transition ease-in-out duration-150"
on:click={menuToggle}
type="button">
<span class="text-xl font-bold">
{#if lang == "en"}
{#if lang == "en"}
{flag("gb")}
{:else if lang == "ja"}
{flag("jp")}
Expand All @@ -40,6 +41,10 @@
{flag("gr")}
{:else if lang == "zh"}
{flag("cn")}
{:else if lang == "et"}
{flag("ee")}
{:else if lang == "sl"}
{flag("si")}
{:else}
{flag(lang)}
{/if}</span>
Expand Down Expand Up @@ -75,6 +80,10 @@
{flag("gr")}
{:else if lang == "zh"}
{flag("cn")}
{:else if lang == "et"}
{flag("ee")}
{:else if lang == "sl"}
{flag("si")}
{:else}
{flag(lang)}
{/if} {lang}</a>
Expand Down

0 comments on commit 3168e54

Please sign in to comment.