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
Done

Assignee

Igor Pecovnik

Reporter

Igor Pecovnik

Labels

None

Components

Fix versions

Affects versions

Priority

Medium