Map iso-639 language to default iso-3166 country to retrieve country flag
See original GitHub issueMissing/wrong country flag While adding locales for different languages, I found that some flags are missing.
Version Beta v2.0 WiP 2.0.0-alpha.2 VSCode 1.44.2 Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.17763
To Reproduce
- Add json locale files for en, cs, da, el for example
- Go to Progress view or i18n Ally Editor or editors popup menu
- Missing country flags, see screenshots below
Background One cannot just use the first token of the locale to retrieve the countrys flag unfortunatly. For example
- language
cs
= Czech / countryCZ
= Czechia - language
da
= Danish / countryDK
= Denmark - language
el
= Greek / countryGR
= Greece - language
en
= English / countryGB
= Great Britain
See
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Map iso-639 language to default iso-3166 country to retrieve ...
One cannot just use the first token of the locale to retrieve the countrys flag unfortunatly. For example. language cs = Czech /...
Read more >ISO-3166 Country Codes and ISO-639 Language Codes
ISO -3166 Country Codes ; AFGHANISTAN. AF ; ALBANIA. AL ; ALGERIA. DZ ; AMERICAN SAMOA. AS.
Read more >ISO 3166 — Country Codes
Using ISO Codes. ISO allows free-of-charge use of its country, currency and language codes from ISO 3166, ISO 4217 and ISO 639, respectively....
Read more >ISO 3166-1 - Wikipedia
ISO 3166 -1 is a standard defining codes for the names of countries, dependent territories, and special areas of geographical interest.
Read more >Country Codes List - Nations Online Project
Afghanistan AF AFG 004
Aland Islands AX ALA 248
Albania AL ALB 008
Algeria DZ DZA 012
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
version: 2.6.9
the flag is not displayed normally
@CallMeHunter can you extract it into a new issue, please?