Update utils.js

This commit is contained in:
freearhey 2021-02-08 13:25:29 +03:00
parent d818a37947
commit 12dc0657ba
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,8 @@ utils.code2flag = function (code) {
switch (code) { switch (code) {
case 'UK': case 'UK':
return '🇬🇧' return '🇬🇧'
case 'INT':
return '🌍'
case 'UNSORTED': case 'UNSORTED':
return '' return ''
default: default:
@ -38,6 +40,7 @@ utils.code2name = function (code) {
code = code.toUpperCase() code = code.toUpperCase()
if (regions[code]) return regions[code].name if (regions[code]) return regions[code].name
if (code === 'US') return 'United States' if (code === 'US') return 'United States'
if (code === 'INT') return 'International'
return intlDisplayNames.of(code) return intlDisplayNames.of(code)
} catch (e) { } catch (e) {
return null return null