feat: set English as default language in dropdown

Modified the language selection dropdown to default to English by marking the 'en' option as selected. Enhances user experience by pre-selecting the most commonly used language. This may help users who are primarily English speakers to have a faster and more intuitive interaction with the form.
This commit is contained in:
Kumi 2024-07-16 08:31:32 +02:00
parent b9b407a737
commit 31687723aa
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -93,7 +93,7 @@
</select> </select>
<select name="lang" id="lang"> <select name="lang" id="lang">
{% for key, value in languages.items() %} {% for key, value in languages.items() %}
<option value="{{ key }}">{{ value["name"] }}</option> <option {% if key == "en" %}selected="selected"{% endif %} value="{{ key }}">{{ value["name"] }}</option>
{% endfor %} {% endfor %}
</select> </select>
<input type="text" name="query" id="query" placeholder="Search Wikipedia" required> <input type="text" name="query" id="query" placeholder="Search Wikipedia" required>