locale2emoji
v1.1.1
Published
Get emoji flags by locale code
Downloads
67
Readme
locale2emoji
Convert a locale id string (LCID) to a unicode regional indicator symbol.
Installation
$ npm install locale2emoji
Usage
import { getFlagEmoji } from 'locale2emoji';
getFlagEmoji('en-CA'); // 🇨🇦
getFlagEmoji('en_CA'); // 🇨🇦
getFlagEmoji('en'); // 🇺🇸