element-hq / element-hq/element-web

country flag emoji are not represented homogenously

Open
#18,996 2 comments 1 reaction 0 assignees View on GitHub
A-Composer A-Emoji O-Occasional S-Minor T-Defect Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Open the Element Web client (I'd test this on a desktop client but I've only a chromebook)
2. Select a country (you must know that country's two-letter abbreviation)
3. Attempt to type the emoji for that country's flag

### What happened?

### What did you expect?
All country flags should be represented the same way. In Discord, for example, country flags follow the format `:flag_xx:`, where `xx` is the two-letter abbreviation for the country in question.

### What happened?
Different countries follow different patterns.
There are, as far as I can tell, two distinct patterns:
Pattern A is `:xx:`, where `xx` is the country's two-letter abbreviation.
Pattern B is `:flag-xx:`, where `xx` is the country's two-letter abbreviation.

Below is an incomplete list of which countries use which patterns.

Countries that use Pattern A:
- United Kingdom
- France
- Spain
- Germany
- China
- Japan
- Russia
- South Korea

Countries that use Pattern B:
- Portugal
- Canada
- Mexico
- North Korea
- Australia

### Operating system

_No response_

### Browser information

_No response_

### URL for webapp

_No response_

### Homeserver

_No response_

### Have you submitted a rageshake?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.