Skip to content

Commit

Permalink
Merge pull request opendata-stuttgart#179 from opendata-stuttgart/bug…
Browse files Browse the repository at this point in the history
…/emoji-country-flags

bug/emoji-country-flags
  • Loading branch information
ohheyitsdave authored Apr 7, 2021
2 parents cf494c7 + 3168e54 commit e763f9c
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 e763f9c

Please sign in to comment.