-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change language selection to use a generic globe icon instead of coun…
…try flags
- Loading branch information
1 parent
138eba0
commit 8ed0284
Showing
3 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
{% macro language_select() -%} | ||
<select id="language-select" | ||
name="lang" | ||
autocomplete="off" | ||
class="p-2 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" | ||
onchange="window.location.replace(`/i18n?lang=${this.value}`)"> | ||
<option value="en-US" | ||
{% if LANGUAGE == "en-US" %}selected="selected"{% endif %}> | ||
🇬🇧 English | ||
</option> | ||
<option value="ka-GE" | ||
{% if LANGUAGE == "ka-GE" %}selected="selected"{% endif %}> | ||
🇬🇪 ქართული | ||
</option> | ||
</select> | ||
<span> | ||
<select id="language-select" | ||
name="lang" | ||
autocomplete="off" | ||
class="p-2 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" | ||
onchange="window.location.replace(`/i18n?lang=${this.value}`)"> | ||
<option value="en-US" | ||
{% if LANGUAGE == "en-US" %}selected="selected"{% endif %}> | ||
🌍 English | ||
</option> | ||
<option value="ka-GE" | ||
{% if LANGUAGE == "ka-GE" %}selected="selected"{% endif %}> | ||
🌍 ქართული | ||
</option> | ||
</select> | ||
</span> | ||
{%- endmacro %} |