question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Map iso-639 language to default iso-3166 country to retrieve country flag

See original GitHub issue

Missing/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

  1. Add json locale files for en, cs, da, el for example
  2. Go to Progress view or i18n Ally Editor or editors popup menu
  3. 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 / country CZ = Czechia
  • language da = Danish / country DK = Denmark
  • language el = Greek / country GR = Greece
  • language en = English / country GB = Great Britain

See

Screenshots 2020-04-21 08_37_29-i18n Ally Editor - test2 - Visual Studio Code

2020-04-21 08_38_28-test php - test2 - Visual Studio Code

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
appleawaycommented, Jun 16, 2021

image version: 2.6.9

the flag is not displayed normally

0reactions
teralescommented, Jun 16, 2021

@CallMeHunter can you extract it into a new issue, please?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found