Locales detection doesn't work properly in some cases

Description

Matching on country name sometimes returns empty data. Switching to country code seems like a better solution. Also we need to cover for the case if nothing is found so that it doesn't stuck at detection.

https://forum.armbian.com/topic/16261-nanopi-neo-3-stuck-at-locales-genarate-armbian-focal-5910/?tab=comments#comment-117720

Environment

None

Checklist

hide

Activity

Show:
Done

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created January 19, 2021 at 5:15 PM
Updated January 19, 2021 at 10:25 PM
Resolved January 19, 2021 at 10:25 PM