Skip to content

Commit 7053b52

Browse files
committed
Added more service provider with country in the provider.js file
1 parent fd93fe8 commit 7053b52

File tree

1 file changed

+51
-24
lines changed

1 file changed

+51
-24
lines changed

tracker/src/provider.js

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,54 @@
22

33
// Sample service provider data (for demonstration purposes)
44
const serviceProviders = {
5-
'+1': 'AT&T',
6-
'+44': 'Vodafone UK',
7-
'+91': 'Airtel',
8-
'+33': 'Orange France',
9-
'+49': 'Telekom Deutschland',
10-
'+61': 'Telstra Australia',
11-
'+81': 'NTT DOCOMO',
12-
'+82': 'SK Telecom',
13-
'+86': 'China Mobile',
14-
'+90': 'Turkcell',
15-
'+92': 'Jazz Pakistan',
16-
'+234': 'MTN Nigeria',
17-
'+254': 'Safaricom Kenya',
18-
'+966': 'STC Saudi Arabia',
19-
'+971': 'Etisalat UAE',
20-
'+92': 'Telenor Pakistan',
21-
'+93': 'Roshan Afghanistan',
22-
'+355': 'Vodafone Albania',
23-
'+375': 'MTS Belarus',
24-
'+598': 'Antel Uruguay',
25-
// Add more service providers and country codes here
5+
"+1": "AT&T",
6+
"+44": "Vodafone UK",
7+
"+91": "Airtel",
8+
"+33": "Orange France",
9+
"+49": "Telekom Deutschland",
10+
"+61": "Telstra Australia",
11+
"+81": "NTT DOCOMO",
12+
"+82": "SK Telecom",
13+
"+86": "China Mobile",
14+
"+90": "Turkcell",
15+
"+92": "Jazz Pakistan",
16+
"+234": "MTN Nigeria",
17+
"+254": "Safaricom Kenya",
18+
"+966": "STC Saudi Arabia",
19+
"+971": "Etisalat UAE",
20+
"+93": "Roshan Afghanistan",
21+
"+355": "Vodafone Albania",
22+
"+375": "MTS Belarus",
23+
"+598": "Antel Uruguay",
24+
"+52": "Telcel Mexico",
25+
"+55": "Vivo Brazil",
26+
"+356": "GO Malta",
27+
"+977": "Nepal Telecom",
28+
"+81": "SoftBank Japan",
29+
"+82": "KT Corporation South Korea",
30+
"+852": "HKT Hong Kong",
31+
"+886": "Chunghwa Telecom Taiwan",
32+
"+94": "Dialog Axiata Sri Lanka",
33+
"+880": "Grameenphone Bangladesh",
34+
"+93": "Roshan Afghanistan",
35+
"+46": "Tele2 Sweden",
36+
"+30": "Cosmote Greece",
37+
"+7": "MTS Russia",
38+
"+65": "Singtel Singapore",
39+
"+46": "Telia Sweden",
40+
"+34": "Movistar Spain",
41+
"+351": "Vodafone Portugal",
42+
"+39": "TIM Italy",
43+
"+27": "Vodacom South Africa",
44+
"+20": "Orange Egypt",
45+
"+962": "Zain Jordan",
46+
"+503": "Claro El Salvador",
47+
"+506": "Kölbi Costa Rica",
48+
"+54": "Claro Argentina",
49+
"+598": "Movistar Uruguay",
50+
"+52": "Movistar Mexico",
51+
"+57": "Claro Colombia",
52+
// Add more service providers and country codes here
2653
};
2754

2855
/**
@@ -31,9 +58,9 @@ const serviceProviders = {
3158
* @returns {string} - The service provider name or 'Unknown Service Provider'.
3259
*/
3360
function getServiceProvider(countryCode) {
34-
return serviceProviders[countryCode] || 'Unknown Service Provider';
61+
return serviceProviders[countryCode] || "Unknown Service Provider";
3562
}
3663

3764
module.exports = {
38-
getServiceProvider,
39-
};
65+
getServiceProvider,
66+
};

0 commit comments

Comments
 (0)