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.

RFC: Remove flags from language representations

See original GitHub issue

There’s a strong argument against using flags to represent languages. Flags are symbols for countries, however, a language may be spoken in many countries while a single country may have multiple official+unofficial languages. This makes flags at least a weak, usually blatantly wrong, and in some cases offensive representation for a language.

Here’s a good summary resource for this argument: http://www.flagsarenotlanguages.com/blog/why-flags-do-not-represent-language/

I believe it would be a good decision to drop flags from the progress report panel and anywhere else in the UI.

image

The exception may be when the language key includes a locale. en is English without geographical context, so it could be for UK, Australia, Malta or India, or even Japan, you wouldn’t know. en-US is clearly for United States, which makes it ok (but still unnecessary) to use a flag.

I believe the best representation would be the name of the language in itself, optionally followed by the name of the language in the language of the editor/OS

  • English
  • Français - French
  • Svenska - Swedish
  • Türkçe - Turkish

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
antfucommented, May 24, 2020

Emmm… I don’t know. I am happy to provide a config field to disable flags if anyone feels being “offensive” (although it’s absolutely not intentional).

Anyway, I am feeling that I am not knowledgeable enough to make the decision (to completely drop it). I have pinned this issue and labeled rfc. I would love to hear comments from anyone. Thanks in advance.

3reactions
antfucommented, May 29, 2020

I am trying to find some balance point to this issue.

Now in v2.2.4

Config to disable the flags

"i18n-ally.showFlags": false

Not to use language code as country code

Two letters locales are not be used as country code to display flags anymore. While BCP-47 with region/country code will try to match a flags

image

If you have preference on mapping a two letter locale to country code, you can do it in config:

"i18n-ally.localeCountryMap": {
  "en": "br", // show UK's flag instead of US's
  "zh": "cn", // show Chinese flag for 'zh'
  "ko": "ko", // show Korean flag for 'ko'
}

Let me know if you have any comments. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC: Remove flags from language representations · Issue #313
There's a strong argument against using flags to represent languages. Flags are symbols for countries, however, a language may be spoken in ...
Read more >
Sieve Email Filtering: Imap4flags Extension RFC 5232
This document describes an extension to the Sieve mail filtering language for setting IMAP flags. The extension allows setting of both IMAP system...
Read more >
RFC 3501: INTERNET MESSAGE ACCESS PROTOCOL
A flag is set by its addition to this list, and is cleared by its removal. There are two types of flags in...
Read more >
Language Guide (proto3) | Protocol Buffers - Google Developers
Reserved Fields. If you update a message type by entirely removing a field, or commenting it out, future users can reuse the field...
Read more >
RFC-0137: Discard unknown data in FIDL - Fuchsia
Alternative: Optionally preserve unknowns · Drawback: Flexible types are inconsistent · Alternative: Discard all unknown information · Alternative: Optional ...
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