Switch to translatable data
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Source: https://dev.to/jorik/country-code-to-flag-emoji-a21
|
||||
export function getFlagEmoji(countryCode: string) {
|
||||
const codePoints = countryCode
|
||||
.toUpperCase()
|
||||
.split('')
|
||||
.map((char) => 127397 + char.charCodeAt(0));
|
||||
return String.fromCodePoint(...codePoints);
|
||||
}
|
||||
Reference in New Issue
Block a user