Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Ignore intl.display names

Acho Arnold2cf1cedcda14
diff --git a/web/plugins/filters.ts b/web/plugins/filters.ts
index c5156670..10e6f210 100644
--- a/web/plugins/filters.ts
+++ b/web/plugins/filters.ts
@@ -12,6 +12,7 @@ Vue.filter('phoneNumber', (value: string): string => {
Vue.filter('phoneCountry', (value: string): string => {
const phoneNumber = parsePhoneNumber(value)
if (phoneNumber && phoneNumber.country) {
+ // @ts-ignore
const regionNames = new Intl.DisplayNames(undefined, { type: 'region' })
return regionNames.of(phoneNumber.country) ?? 'earth'
}