[GH-ISSUE #90] Language Selection Improvements for Kiosk Mode #46

Closed
opened 2026-05-07 00:18:18 +02:00 by BreizhHardware · 3 comments

Originally created by @berg-maia on GitHub (Aug 23, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/90

Originally assigned to: @glenndehaan on GitHub.

The feature

With the increasing number of supported languages in Kiosk mode, it would be great to enhance the flexibility and user experience of the language selection feature. Here's what I'm proposing:

  • Language Configuration in Environment File:

Allow the list of available languages to be defined in environment/options.json. This way, we can control which languages are shown in the kiosk interface without code changes.

  • Auto-Hide Language Selector for Single Language:

If only one language is defined in the configuration, the language selection dropdown should be hidden, as it becomes redundant in that case.

  • Flag Icons for Language Selection:

To make the language selection more intuitive and visually appealing, it would be nice to display country flags as icons next to (or instead of) the language names.

Originally created by @berg-maia on GitHub (Aug 23, 2025). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/90 Originally assigned to: @glenndehaan on GitHub. ### The feature With the increasing number of supported languages in Kiosk mode, it would be great to enhance the flexibility and user experience of the language selection feature. Here's what I'm proposing: - Language Configuration in Environment File: Allow the list of available languages to be defined in environment/options.json. This way, we can control which languages are shown in the kiosk interface without code changes. - Auto-Hide Language Selector for Single Language: If only one language is defined in the configuration, the language selection dropdown should be hidden, as it becomes redundant in that case. - Flag Icons for Language Selection: To make the language selection more intuitive and visually appealing, it would be nice to display country flags as icons next to (or instead of) the language names.
BreizhHardware 2026-05-07 00:18:18 +02:00
Author
Owner

@glenndehaan commented on GitHub (Aug 26, 2025):

Hi @berg-maia,

Sorry for the delay, had some pretty busy days.
Will put the changes on the planning for the v8 release.

One thing I will change is the settings to control the languages.
I will basically change it from a whitelist to a blacklist for prevent confusion from users who would otherwise miss languages when they are added but the config prevent it from showing.

Kind regards,
Glenn de Haan

<!-- gh-comment-id:3224867437 --> @glenndehaan commented on GitHub (Aug 26, 2025): Hi @berg-maia, Sorry for the delay, had some pretty busy days. Will put the changes on the planning for the v8 release. One thing I will change is the settings to control the languages. I will basically change it from a whitelist to a blacklist for prevent confusion from users who would otherwise miss languages when they are added but the config prevent it from showing. Kind regards, Glenn de Haan
Author
Owner

@glenndehaan commented on GitHub (Aug 27, 2025):

Hi @berg-maia,

All requested features are now available within version 8.0.0 (https://github.com/glenndehaan/unifi-voucher-site/releases/tag/8.0.0).
Ensure to read the migration documentation before upgrading.

Configuration works as follows:

services:
  unifi-voucher-site:
    image: glenndehaan/unifi-voucher-site:latest
    ports:
      - "3000:3000"
    environment:
      # Sets the default translation for dropdowns
      TRANSLATION_DEFAULT: 'en'
      # Hides languages from the UI, example: en,nl,de
      TRANSLATION_HIDDEN_LANGUAGES: 'en,nl,de'

Below is an example of the language dropdown now with flags:

Image Image
<!-- gh-comment-id:3229186895 --> @glenndehaan commented on GitHub (Aug 27, 2025): Hi @berg-maia, All requested features are now available within version 8.0.0 (https://github.com/glenndehaan/unifi-voucher-site/releases/tag/8.0.0). Ensure to read the migration documentation before upgrading. Configuration works as follows: ```yaml services: unifi-voucher-site: image: glenndehaan/unifi-voucher-site:latest ports: - "3000:3000" environment: # Sets the default translation for dropdowns TRANSLATION_DEFAULT: 'en' # Hides languages from the UI, example: en,nl,de TRANSLATION_HIDDEN_LANGUAGES: 'en,nl,de' ``` Below is an example of the language dropdown now with flags: <img width="1300" height="996" alt="Image" src="https://github.com/user-attachments/assets/0e35c125-b565-401c-bdf9-66023a4d1fee" /> <img width="1300" height="996" alt="Image" src="https://github.com/user-attachments/assets/1b677e96-57bc-43e1-8053-9ef74d7c6990" />
Author
Owner

@berg-maia commented on GitHub (Aug 28, 2025):

thanks mate

<!-- gh-comment-id:3231115418 --> @berg-maia commented on GitHub (Aug 28, 2025): thanks mate
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#46
No description provided.