Updated languages.js to include new languages from Crowdin. Limit width of language selector in kiosk.ejs. Updated dependencies

This commit is contained in:
Glenn de Haan
2025-07-08 18:59:15 +02:00
parent 731173e11b
commit c8c3b923b4
4 changed files with 7 additions and 6 deletions

View File

@@ -44,7 +44,7 @@
<% if(typeof voucherCode === 'undefined') { %>
<div class="absolute top-2 right-2">
<form id="locale-form" action="<%= baseUrl %>/kiosk" method="get">
<select id="locale" name="locale" class="block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 dark:text-white dark:bg-white/5 ring-1 ring-inset ring-gray-300 dark:ring-white/10 focus:ring-2 focus:ring-sky-600 sm:text-sm sm:leading-6 **:text-black">
<select id="locale" name="locale" class="max-w-28 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 dark:text-white dark:bg-white/5 ring-1 ring-inset ring-gray-300 dark:ring-white/10 focus:ring-2 focus:ring-sky-600 sm:text-sm sm:leading-6 **:text-black">
<% Object.keys(languages).forEach((l) => { %>
<option value="<%= l %>-<%= l %>"<%= l === language ? ' selected' : '' %>><%= languages[l] %></option>
<% }); %>