Is it possible to display flags using emoji?
Answered
Iridescent shark posted this in #help-forum
Iridescent sharkOP
I tried to use span + unicode but that method displays text emoji "EN" instead of actual flag? The image is what I want to achieve
Answered by Ocicat
If you can't find a solution for specifically Emoji
You can try using the NPM library. flag-icons
You can try using the NPM library. flag-icons
5 Replies
Ocicat
If you can't find a solution for specifically Emoji
You can try using the NPM library. flag-icons
You can try using the NPM library. flag-icons
Answer
@Iridescent shark I tried to use span + unicode but that method displays text emoji "EN" instead of actual flag? The image is what I want to achieve
Just display the emoji directly like any other text? Like, <span>🇯🇵</span>.
@Ocicat If you can't find a solution for specifically Emoji
You can try using the NPM library. flag-icons
Iridescent sharkOP
I found that most browsers doesn't support country flags. The flag you pasted in discord is "JP" in browser. I think I'll stick to npm library for it
Btw there might be browsers or devices that don't have the flag emoji/can't render it
(I personally do use it and let it be for the unsupported ones)