You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Countries were sorted by their raw translation key (English), causing incorrect
alphabetical order in localized versions. The search input was not focused
automatically when opening the dropdown, requiring an extra click. Priority
countries were hardcoded and not configurable per deployment.
Solution
Sort countries using t(label).localeCompare() so ordering reflects the active locale
Autofocus the search input when the dropdown opens
Read priority country codes from VITE_FORM_COUNTRY_PRIORITY env variable
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Countries were sorted by their raw translation key (English), causing incorrect
alphabetical order in localized versions. The search input was not focused
automatically when opening the dropdown, requiring an extra click. Priority
countries were hardcoded and not configurable per deployment.
Solution
Configuration
VITE_FORM_COUNTRY_PRIORITY=DE,AT,CH,NL,BE
Reference Implementation
9uenther@073f332
Beta Was this translation helpful? Give feedback.
All reactions