Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d0ff8146f4 | |||
| 1aba288d2b | |||
| bea77e8672 | |||
| e8cae9f23e | |||
| dd28b52d72 | |||
| 792705bbcc | |||
| 7f58d0e74d | |||
| d86645de16 | |||
| 535ab5c26e | |||
| ee99a51d80 | |||
| b9b34d8ac2 |
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"@ship.zone/szci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmRegistryUrl": "registry.npmjs.org"
|
||||
},
|
||||
"@git.zone/cli": {
|
||||
"projectType": "npm",
|
||||
"module": {
|
||||
"githost": "code.foss.global",
|
||||
"gitscope": "push.rocks",
|
||||
"gitrepo": "smarti18n",
|
||||
"shortDescription": "Country code and phone prefix data",
|
||||
"description": "A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.",
|
||||
"npmPackagename": "@push.rocks/smarti18n",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"i18n",
|
||||
"internationalization",
|
||||
"country codes",
|
||||
"phone prefixes",
|
||||
"typescript",
|
||||
"npm package",
|
||||
"country names",
|
||||
"language support",
|
||||
"translation utilities",
|
||||
"globalization"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"registries": [
|
||||
"https://verdaccio.lossless.digital",
|
||||
"https://registry.npmjs.org"
|
||||
],
|
||||
"accessLevel": "public"
|
||||
}
|
||||
},
|
||||
"@git.zone/tsdoc": {
|
||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.\n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.\n\nUse of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District Court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-05-01 - 1.1.0 - feat(package)
|
||||
modernize package metadata, exports, and typed country dataset coverage
|
||||
|
||||
- add an exported ICountryCode interface and type the countryCodeArray dataset
|
||||
- add meaningful tests for dataset size and Germany country metadata
|
||||
- define package exports and refresh build, test, and documentation tooling configuration
|
||||
- update README and project metadata for clearer package usage and release configuration
|
||||
|
||||
## 2024-05-29 - 1.0.4 - maintenance
|
||||
Repository metadata and configuration updates.
|
||||
|
||||
- Updated package description
|
||||
- Adjusted TypeScript configuration
|
||||
- Updated npmextra.json git host settings
|
||||
- Includes routine maintenance changes across 2024-03-30 to 2024-05-29
|
||||
|
||||
## 2023-10-21 - 1.0.3 - core
|
||||
Core update fix release.
|
||||
|
||||
- Applied `fix(core): update`
|
||||
|
||||
## 2023-10-21 - 1.0.2 - core
|
||||
Core update fix release.
|
||||
|
||||
- Applied `fix(core): update`
|
||||
|
||||
## 2023-10-21 - 1.0.1 - core
|
||||
Core update fix release.
|
||||
|
||||
- Applied `fix(core): update`
|
||||
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2026 Task Venture Capital GmbH <hello@task.vc>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+29
-7
@@ -1,18 +1,40 @@
|
||||
{
|
||||
"gitzone": {
|
||||
"@ship.zone/szci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmRegistryUrl": "registry.npmjs.org"
|
||||
},
|
||||
"@git.zone/cli": {
|
||||
"projectType": "npm",
|
||||
"module": {
|
||||
"githost": "gitlab.com",
|
||||
"githost": "code.foss.global",
|
||||
"gitscope": "push.rocks",
|
||||
"gitrepo": "smarti18n",
|
||||
"description": "a package dealing with i18n stuff",
|
||||
"shortDescription": "Country code and phone prefix data",
|
||||
"description": "A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.",
|
||||
"npmPackagename": "@push.rocks/smarti18n",
|
||||
"license": "MIT",
|
||||
"projectDomain": "push.rocks"
|
||||
"keywords": [
|
||||
"i18n",
|
||||
"internationalization",
|
||||
"country codes",
|
||||
"phone prefixes",
|
||||
"typescript",
|
||||
"npm package",
|
||||
"country names",
|
||||
"language support",
|
||||
"translation utilities",
|
||||
"globalization"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"registries": [
|
||||
"https://verdaccio.lossless.digital",
|
||||
"https://registry.npmjs.org"
|
||||
],
|
||||
"accessLevel": "public"
|
||||
}
|
||||
},
|
||||
"npmci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmAccessLevel": "public"
|
||||
"@git.zone/tsdoc": {
|
||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.\n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.\n\nUse of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District Court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||
}
|
||||
}
|
||||
+30
-15
@@ -1,34 +1,35 @@
|
||||
{
|
||||
"name": "@push.rocks/smarti18n",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"private": false,
|
||||
"description": "a package dealing with i18n stuff",
|
||||
"description": "A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.",
|
||||
"exports": {
|
||||
".": "./dist_ts/index.js"
|
||||
},
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"type": "module",
|
||||
"author": "Task Venture Capital GmbH",
|
||||
"author": "Task Venture Capital GmbH <hello@task.vc>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild --web --allowimplicitany)",
|
||||
"buildDocs": "(tsdoc)"
|
||||
"test": "tstest test/",
|
||||
"build": "tsbuild --web",
|
||||
"buildDocs": "tsdoc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.25",
|
||||
"@git.zone/tsbundle": "^2.0.5",
|
||||
"@git.zone/tsrun": "^1.2.46",
|
||||
"@git.zone/tstest": "^1.0.44",
|
||||
"@push.rocks/tapbundle": "^5.0.15",
|
||||
"@types/node": "^20.8.7"
|
||||
"@git.zone/tsbuild": "^4.4.0",
|
||||
"@git.zone/tsdoc": "^2.0.3",
|
||||
"@git.zone/tstest": "^3.6.3",
|
||||
"@types/node": "^25.6.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://gitlab.com/push.rocks/smarti18n.git"
|
||||
"url": "https://code.foss.global/push.rocks/smarti18n.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/push.rocks/smarti18n/issues"
|
||||
"url": "https://code.foss.global/push.rocks/smarti18n/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/push.rocks/smarti18n#readme",
|
||||
"homepage": "https://code.foss.global/push.rocks/smarti18n",
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
],
|
||||
@@ -41,7 +42,21 @@
|
||||
"dist_ts_web/**/*",
|
||||
"assets/**/*",
|
||||
"cli.js",
|
||||
".smartconfig.json",
|
||||
"license",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
],
|
||||
"keywords": [
|
||||
"i18n",
|
||||
"internationalization",
|
||||
"country codes",
|
||||
"phone prefixes",
|
||||
"typescript",
|
||||
"npm package",
|
||||
"country names",
|
||||
"language support",
|
||||
"translation utilities",
|
||||
"globalization"
|
||||
]
|
||||
}
|
||||
|
||||
Generated
+7416
-4905
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
|
||||
@@ -1,31 +1,135 @@
|
||||
# @push.rocks/smarti18n
|
||||
a package dealing with i18n stuff
|
||||
|
||||
## Availabililty and Links
|
||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@push.rocks/smarti18n)
|
||||
* [gitlab.com (source)](https://gitlab.com/push.rocks/smarti18n)
|
||||
* [github.com (source mirror)](https://github.com/push.rocks/smarti18n)
|
||||
* [docs (typedoc)](https://push.rocks.gitlab.io/smarti18n/)
|
||||
`@push.rocks/smarti18n` is a tiny, typed ESM package for working with country metadata in international applications. It currently ships a ready-to-use country-code dataset that maps ISO-style country codes to human-readable country names and international phone prefixes.
|
||||
|
||||
## Status for master
|
||||
Use it when you need dependable country data for signup forms, billing profiles, phone-number UI, address flows, CRM imports, or any TypeScript project that needs country names and dialing prefixes without pulling in a large i18n framework.
|
||||
|
||||
Status Category | Status Badge
|
||||
-- | --
|
||||
GitLab Pipelines | [](https://lossless.cloud)
|
||||
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
||||
npm | [](https://lossless.cloud)
|
||||
Snyk | [](https://lossless.cloud)
|
||||
TypeScript Support | [](https://lossless.cloud)
|
||||
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
Code Style | [](https://lossless.cloud)
|
||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||
## Issue Reporting and Security
|
||||
|
||||
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
pnpm add @push.rocks/smarti18n
|
||||
```
|
||||
|
||||
The package is published as native ESM and includes TypeScript declarations.
|
||||
|
||||
## What It Exports
|
||||
|
||||
### `ICountryCode`
|
||||
|
||||
```typescript
|
||||
export interface ICountryCode {
|
||||
code: string;
|
||||
name: string;
|
||||
phonePrefix: string;
|
||||
}
|
||||
```
|
||||
|
||||
Each record contains:
|
||||
|
||||
- `code`: the two-letter country or territory code, such as `DE`, `US`, or `GB`
|
||||
- `name`: the display name for the country or territory
|
||||
- `phonePrefix`: the international dialing prefix without a leading `+`, such as `49` for Germany
|
||||
|
||||
Some territories do not have their own dialing prefix in the dataset. In those cases, `phonePrefix` is an empty string.
|
||||
|
||||
### `countryCodeArray`
|
||||
|
||||
```typescript
|
||||
export const countryCodeArray: ICountryCode[];
|
||||
```
|
||||
|
||||
`countryCodeArray` contains more than 200 country and territory records.
|
||||
|
||||
## Usage
|
||||
Use TypeScript for best in class intellisense
|
||||
For further information read the linked docs at the top of this readme.
|
||||
|
||||
## Legal
|
||||
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||
### Import The Dataset
|
||||
|
||||
```typescript
|
||||
import { countryCodeArray } from '@push.rocks/smarti18n';
|
||||
```
|
||||
|
||||
### Find A Country By Code
|
||||
|
||||
```typescript
|
||||
import { countryCodeArray } from '@push.rocks/smarti18n';
|
||||
|
||||
const germany = countryCodeArray.find((country) => country.code === 'DE');
|
||||
|
||||
console.log(germany);
|
||||
// { code: 'DE', name: 'Germany', phonePrefix: '49' }
|
||||
```
|
||||
|
||||
### Build Country Select Options
|
||||
|
||||
```typescript
|
||||
import { countryCodeArray } from '@push.rocks/smarti18n';
|
||||
|
||||
const countryOptions = countryCodeArray.map((country) => ({
|
||||
value: country.code,
|
||||
label: country.phonePrefix
|
||||
? `${country.name} (+${country.phonePrefix})`
|
||||
: country.name,
|
||||
}));
|
||||
```
|
||||
|
||||
### Create A Fast Lookup Map
|
||||
|
||||
```typescript
|
||||
import { countryCodeArray } from '@push.rocks/smarti18n';
|
||||
|
||||
const countriesByCode = new Map(
|
||||
countryCodeArray.map((country) => [country.code, country])
|
||||
);
|
||||
|
||||
const unitedStates = countriesByCode.get('US');
|
||||
console.log(unitedStates?.phonePrefix);
|
||||
// '1'
|
||||
```
|
||||
|
||||
### Filter Countries With Phone Prefixes
|
||||
|
||||
```typescript
|
||||
import { countryCodeArray } from '@push.rocks/smarti18n';
|
||||
|
||||
const countriesWithDialingPrefixes = countryCodeArray.filter(
|
||||
(country) => country.phonePrefix.length > 0
|
||||
);
|
||||
```
|
||||
|
||||
## API Surface
|
||||
|
||||
The package intentionally keeps the API small:
|
||||
|
||||
- `ICountryCode`: TypeScript interface for a country record
|
||||
- `countryCodeArray`: Array of country records
|
||||
|
||||
There are no runtime helpers, localization engines, translation loaders, or date/number formatters in the current release. If you need those features, combine this dataset with the platform `Intl` APIs or your existing i18n framework.
|
||||
|
||||
## Runtime Compatibility
|
||||
|
||||
`@push.rocks/smarti18n` is built as an ESM package and works in modern Node.js and browser-oriented TypeScript builds. The dataset is static, has no runtime dependencies, and can be imported directly in frontend or backend code.
|
||||
|
||||
## License and Legal Information
|
||||
|
||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
|
||||
|
||||
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
||||
|
||||
### Trademarks
|
||||
|
||||
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.
|
||||
|
||||
Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.
|
||||
|
||||
### Company Information
|
||||
|
||||
Task Venture Capital GmbH
|
||||
Registered at District Court Bremen HRB 35230 HB, Germany
|
||||
|
||||
For any legal inquiries or further information, please contact us via email at hello@task.vc.
|
||||
|
||||
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smarti18n from '../ts/index.js';
|
||||
|
||||
tap.test('should expose country code records', async () => {
|
||||
expect(smarti18n.countryCodeArray.length).toBeGreaterThan(200);
|
||||
});
|
||||
|
||||
tap.test('should include Germany with phone prefix', async () => {
|
||||
const germany = smarti18n.countryCodeArray.find((countryArg) => countryArg.code === 'DE');
|
||||
|
||||
expect(germany?.name).toEqual('Germany');
|
||||
expect(germany?.phonePrefix).toEqual('49');
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
@@ -1,8 +0,0 @@
|
||||
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||
import * as smarti18n from '../ts/index.js'
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(smarti18n)
|
||||
})
|
||||
|
||||
tap.start()
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smarti18n',
|
||||
version: '1.0.2',
|
||||
description: 'a package dealing with i18n stuff'
|
||||
version: '1.1.0',
|
||||
description: 'A package for internationalization (i18n) that provides utilities for dealing with international phone number prefixes, country codes, and names.'
|
||||
}
|
||||
|
||||
+256
-250
@@ -1,251 +1,257 @@
|
||||
export const countryCodeArray = [
|
||||
{ "code": "AD", "name": "Andorra" },
|
||||
{ "code": "AE", "name": "United Arab Emirates" },
|
||||
{ "code": "AF", "name": "Afghanistan" },
|
||||
{ "code": "AG", "name": "Antigua and Barbuda" },
|
||||
{ "code": "AI", "name": "Anguilla" },
|
||||
{ "code": "AL", "name": "Albania" },
|
||||
{ "code": "AM", "name": "Armenia" },
|
||||
{ "code": "AO", "name": "Angola" },
|
||||
{ "code": "AQ", "name": "Antarctica" },
|
||||
{ "code": "AR", "name": "Argentina" },
|
||||
{ "code": "AS", "name": "American Samoa" },
|
||||
{ "code": "AT", "name": "Austria" },
|
||||
{ "code": "AU", "name": "Australia" },
|
||||
{ "code": "AW", "name": "Aruba" },
|
||||
{ "code": "AX", "name": "Åland Islands" },
|
||||
{ "code": "AZ", "name": "Azerbaijan" },
|
||||
{ "code": "BA", "name": "Bosnia and Herzegovina" },
|
||||
{ "code": "BB", "name": "Barbados" },
|
||||
{ "code": "BD", "name": "Bangladesh" },
|
||||
{ "code": "BE", "name": "Belgium" },
|
||||
{ "code": "BF", "name": "Burkina Faso" },
|
||||
{ "code": "BG", "name": "Bulgaria" },
|
||||
{ "code": "BH", "name": "Bahrain" },
|
||||
{ "code": "BI", "name": "Burundi" },
|
||||
{ "code": "BJ", "name": "Benin" },
|
||||
{ "code": "BL", "name": "Saint Barthélemy" },
|
||||
{ "code": "BM", "name": "Bermuda" },
|
||||
{ "code": "BN", "name": "Brunei Darussalam" },
|
||||
{ "code": "BO", "name": "Bolivia, Plurinational State of" },
|
||||
{ "code": "BQ", "name": "Bonaire, Sint Eustatius and Saba" },
|
||||
{ "code": "BR", "name": "Brazil" },
|
||||
{ "code": "BS", "name": "Bahamas" },
|
||||
{ "code": "BT", "name": "Bhutan" },
|
||||
{ "code": "BV", "name": "Bouvet Island" },
|
||||
{ "code": "BW", "name": "Botswana" },
|
||||
{ "code": "BY", "name": "Belarus" },
|
||||
{ "code": "BZ", "name": "Belize" },
|
||||
{ "code": "CA", "name": "Canada" },
|
||||
{ "code": "CC", "name": "Cocos (Keeling) Islands" },
|
||||
{ "code": "CD", "name": "Congo, Democratic Republic of the" },
|
||||
{ "code": "CF", "name": "Central African Republic" },
|
||||
{ "code": "CG", "name": "Congo" },
|
||||
{ "code": "CH", "name": "Switzerland" },
|
||||
{ "code": "CI", "name": "Côte d'Ivoire" },
|
||||
{ "code": "CK", "name": "Cook Islands" },
|
||||
{ "code": "CL", "name": "Chile" },
|
||||
{ "code": "CM", "name": "Cameroon" },
|
||||
{ "code": "CN", "name": "China" },
|
||||
{ "code": "CO", "name": "Colombia" },
|
||||
{ "code": "CR", "name": "Costa Rica" },
|
||||
{ "code": "CU", "name": "Cuba" },
|
||||
{ "code": "CV", "name": "Cabo Verde" },
|
||||
{ "code": "CW", "name": "Curaçao" },
|
||||
{ "code": "CX", "name": "Christmas Island" },
|
||||
{ "code": "CY", "name": "Cyprus" },
|
||||
{ "code": "CZ", "name": "Czechia" },
|
||||
{ "code": "DE", "name": "Germany" },
|
||||
{ "code": "DJ", "name": "Djibouti" },
|
||||
{ "code": "DK", "name": "Denmark" },
|
||||
{ "code": "DM", "name": "Dominica" },
|
||||
{ "code": "DO", "name": "Dominican Republic" },
|
||||
{ "code": "DZ", "name": "Algeria" },
|
||||
{ "code": "EC", "name": "Ecuador" },
|
||||
{ "code": "EE", "name": "Estonia" },
|
||||
{ "code": "EG", "name": "Egypt" },
|
||||
{ "code": "EH", "name": "Western Sahara" },
|
||||
{ "code": "ER", "name": "Eritrea" },
|
||||
{ "code": "ES", "name": "Spain" },
|
||||
{ "code": "ET", "name": "Ethiopia" },
|
||||
{ "code": "FI", "name": "Finland" },
|
||||
{ "code": "FJ", "name": "Fiji" },
|
||||
{ "code": "FK", "name": "Falkland Islands (Malvinas)" },
|
||||
{ "code": "FM", "name": "Micronesia, Federated States of" },
|
||||
{ "code": "FO", "name": "Faroe Islands" },
|
||||
{ "code": "FR", "name": "France" },
|
||||
{ "code": "GA", "name": "Gabon" },
|
||||
{ "code": "GB", "name": "United Kingdom of Great Britain and Northern Ireland" },
|
||||
{ "code": "GD", "name": "Grenada" },
|
||||
{ "code": "GE", "name": "Georgia" },
|
||||
{ "code": "GF", "name": "French Guiana" },
|
||||
{ "code": "GG", "name": "Guernsey" },
|
||||
{ "code": "GH", "name": "Ghana" },
|
||||
{ "code": "GI", "name": "Gibraltar" },
|
||||
{ "code": "GL", "name": "Greenland" },
|
||||
{ "code": "GM", "name": "Gambia" },
|
||||
{ "code": "GN", "name": "Guinea" },
|
||||
{ "code": "GP", "name": "Guadeloupe" },
|
||||
{ "code": "GQ", "name": "Equatorial Guinea" },
|
||||
{ "code": "GR", "name": "Greece" },
|
||||
{ "code": "GS", "name": "South Georgia and the South Sandwich Islands" },
|
||||
{ "code": "GT", "name": "Guatemala" },
|
||||
{ "code": "GU", "name": "Guam" },
|
||||
{ "code": "GW", "name": "Guinea-Bissau" },
|
||||
{ "code": "GY", "name": "Guyana" },
|
||||
{ "code": "HK", "name": "Hong Kong" },
|
||||
{ "code": "HM", "name": "Heard Island and McDonald Islands" },
|
||||
{ "code": "HN", "name": "Honduras" },
|
||||
{ "code": "HR", "name": "Croatia" },
|
||||
{ "code": "HT", "name": "Haiti" },
|
||||
{ "code": "HU", "name": "Hungary" },
|
||||
{ "code": "ID", "name": "Indonesia" },
|
||||
{ "code": "IE", "name": "Ireland" },
|
||||
{ "code": "IL", "name": "Israel" },
|
||||
{ "code": "IM", "name": "Isle of Man" },
|
||||
{ "code": "IN", "name": "India" },
|
||||
{ "code": "IO", "name": "British Indian Ocean Territory" },
|
||||
{ "code": "IQ", "name": "Iraq" },
|
||||
{ "code": "IR", "name": "Iran, Islamic Republic of" },
|
||||
{ "code": "IS", "name": "Iceland" },
|
||||
{ "code": "IT", "name": "Italy" },
|
||||
{ "code": "JE", "name": "Jersey" },
|
||||
{ "code": "JM", "name": "Jamaica" },
|
||||
{ "code": "JO", "name": "Jordan" },
|
||||
{ "code": "JP", "name": "Japan" },
|
||||
{ "code": "KE", "name": "Kenya" },
|
||||
{ "code": "KG", "name": "Kyrgyzstan" },
|
||||
{ "code": "KH", "name": "Cambodia" },
|
||||
{ "code": "KI", "name": "Kiribati" },
|
||||
{ "code": "KM", "name": "Comoros" },
|
||||
{ "code": "KN", "name": "Saint Kitts and Nevis" },
|
||||
{ "code": "KP", "name": "Korea, Democratic People's Republic of" },
|
||||
{ "code": "KR", "name": "Korea, Republic of" },
|
||||
{ "code": "KW", "name": "Kuwait" },
|
||||
{ "code": "KY", "name": "Cayman Islands" },
|
||||
{ "code": "KZ", "name": "Kazakhstan" },
|
||||
{ "code": "LA", "name": "Lao People's Democratic Republic" },
|
||||
{ "code": "LB", "name": "Lebanon" },
|
||||
{ "code": "LC", "name": "Saint Lucia" },
|
||||
{ "code": "LI", "name": "Liechtenstein" },
|
||||
{ "code": "LK", "name": "Sri Lanka" },
|
||||
{ "code": "LR", "name": "Liberia" },
|
||||
{ "code": "LS", "name": "Lesotho" },
|
||||
{ "code": "LT", "name": "Lithuania" },
|
||||
{ "code": "LU", "name": "Luxembourg" },
|
||||
{ "code": "LV", "name": "Latvia" },
|
||||
{ "code": "LY", "name": "Libya" },
|
||||
{ "code": "MA", "name": "Morocco" },
|
||||
{ "code": "MC", "name": "Monaco" },
|
||||
{ "code": "MD", "name": "Moldova, Republic of" },
|
||||
{ "code": "ME", "name": "Montenegro" },
|
||||
{ "code": "MF", "name": "Saint Martin, (French part)" },
|
||||
{ "code": "MG", "name": "Madagascar" },
|
||||
{ "code": "MH", "name": "Marshall Islands" },
|
||||
{ "code": "MK", "name": "North Macedonia" },
|
||||
{ "code": "ML", "name": "Mali" },
|
||||
{ "code": "MM", "name": "Myanmar" },
|
||||
{ "code": "MN", "name": "Mongolia" },
|
||||
{ "code": "MO", "name": "Macao" },
|
||||
{ "code": "MP", "name": "Northern Mariana Islands" },
|
||||
{ "code": "MQ", "name": "Martinique" },
|
||||
{ "code": "MR", "name": "Mauritania" },
|
||||
{ "code": "MS", "name": "Montserrat" },
|
||||
{ "code": "MT", "name": "Malta" },
|
||||
{ "code": "MU", "name": "Mauritius" },
|
||||
{ "code": "MV", "name": "Maldives" },
|
||||
{ "code": "MW", "name": "Malawi" },
|
||||
{ "code": "MX", "name": "Mexico" },
|
||||
{ "code": "MY", "name": "Malaysia" },
|
||||
{ "code": "MZ", "name": "Mozambique" },
|
||||
{ "code": "NA", "name": "Namibia" },
|
||||
{ "code": "NC", "name": "New Caledonia" },
|
||||
{ "code": "NE", "name": "Niger" },
|
||||
{ "code": "NF", "name": "Norfolk Island" },
|
||||
{ "code": "NG", "name": "Nigeria" },
|
||||
{ "code": "NI", "name": "Nicaragua" },
|
||||
{ "code": "NL", "name": "Netherlands" },
|
||||
{ "code": "NO", "name": "Norway" },
|
||||
{ "code": "NP", "name": "Nepal" },
|
||||
{ "code": "NR", "name": "Nauru" },
|
||||
{ "code": "NU", "name": "Niue" },
|
||||
{ "code": "NZ", "name": "New Zealand" },
|
||||
{ "code": "OM", "name": "Oman" },
|
||||
{ "code": "PA", "name": "Panama" },
|
||||
{ "code": "PE", "name": "Peru" },
|
||||
{ "code": "PF", "name": "French Polynesia" },
|
||||
{ "code": "PG", "name": "Papua New Guinea" },
|
||||
{ "code": "PH", "name": "Philippines" },
|
||||
{ "code": "PK", "name": "Pakistan" },
|
||||
{ "code": "PL", "name": "Poland" },
|
||||
{ "code": "PM", "name": "Saint Pierre and Miquelon" },
|
||||
{ "code": "PN", "name": "Pitcairn" },
|
||||
{ "code": "PR", "name": "Puerto Rico" },
|
||||
{ "code": "PS", "name": "Palestine, State of" },
|
||||
{ "code": "PT", "name": "Portugal" },
|
||||
{ "code": "PW", "name": "Palau" },
|
||||
{ "code": "PY", "name": "Paraguay" },
|
||||
{ "code": "QA", "name": "Qatar" },
|
||||
{ "code": "RE", "name": "Réunion" },
|
||||
{ "code": "RO", "name": "Romania" },
|
||||
{ "code": "RS", "name": "Serbia" },
|
||||
{ "code": "RU", "name": "Russian Federation" },
|
||||
{ "code": "RW", "name": "Rwanda" },
|
||||
{ "code": "SA", "name": "Saudi Arabia" },
|
||||
{ "code": "SB", "name": "Solomon Islands" },
|
||||
{ "code": "SC", "name": "Seychelles" },
|
||||
{ "code": "SD", "name": "Sudan" },
|
||||
{ "code": "SE", "name": "Sweden" },
|
||||
{ "code": "SG", "name": "Singapore" },
|
||||
{ "code": "SH", "name": "Saint Helena, Ascension and Tristan da Cunha" },
|
||||
{ "code": "SI", "name": "Slovenia" },
|
||||
{ "code": "SJ", "name": "Svalbard and Jan Mayen" },
|
||||
{ "code": "SK", "name": "Slovakia" },
|
||||
{ "code": "SL", "name": "Sierra Leone" },
|
||||
{ "code": "SM", "name": "San Marino" },
|
||||
{ "code": "SN", "name": "Senegal" },
|
||||
{ "code": "SO", "name": "Somalia" },
|
||||
{ "code": "SR", "name": "Suriname" },
|
||||
{ "code": "SS", "name": "South Sudan" },
|
||||
{ "code": "ST", "name": "Sao Tome and Principe" },
|
||||
{ "code": "SV", "name": "El Salvador" },
|
||||
{ "code": "SX", "name": "Sint Maarten, (Dutch part)" },
|
||||
{ "code": "SY", "name": "Syrian Arab Republic" },
|
||||
{ "code": "SZ", "name": "Eswatini" },
|
||||
{ "code": "TC", "name": "Turks and Caicos Islands" },
|
||||
{ "code": "TD", "name": "Chad" },
|
||||
{ "code": "TF", "name": "French Southern Territories" },
|
||||
{ "code": "TG", "name": "Togo" },
|
||||
{ "code": "TH", "name": "Thailand" },
|
||||
{ "code": "TJ", "name": "Tajikistan" },
|
||||
{ "code": "TK", "name": "Tokelau" },
|
||||
{ "code": "TL", "name": "Timor-Leste" },
|
||||
{ "code": "TM", "name": "Turkmenistan" },
|
||||
{ "code": "TN", "name": "Tunisia" },
|
||||
{ "code": "TO", "name": "Tonga" },
|
||||
{ "code": "TR", "name": "Türkiye" },
|
||||
{ "code": "TT", "name": "Trinidad and Tobago" },
|
||||
{ "code": "TV", "name": "Tuvalu" },
|
||||
{ "code": "TW", "name": "Taiwan, Province of China" },
|
||||
{ "code": "TZ", "name": "Tanzania, United Republic of" },
|
||||
{ "code": "UA", "name": "Ukraine" },
|
||||
{ "code": "UG", "name": "Uganda" },
|
||||
{ "code": "UM", "name": "United States Minor Outlying Islands" },
|
||||
{ "code": "US", "name": "United States of America" },
|
||||
{ "code": "UY", "name": "Uruguay" },
|
||||
{ "code": "UZ", "name": "Uzbekistan" },
|
||||
{ "code": "VA", "name": "Holy See" },
|
||||
{ "code": "VC", "name": "Saint Vincent and the Grenadines" },
|
||||
{ "code": "VE", "name": "Venezuela, Bolivarian Republic of" },
|
||||
{ "code": "VG", "name": "Virgin Islands, British" },
|
||||
{ "code": "VI", "name": "Virgin Islands, U.S." },
|
||||
{ "code": "VN", "name": "Viet Nam" },
|
||||
{ "code": "VU", "name": "Vanuatu" },
|
||||
{ "code": "WF", "name": "Wallis and Futuna" },
|
||||
{ "code": "WS", "name": "Samoa" },
|
||||
{ "code": "YE", "name": "Yemen" },
|
||||
{ "code": "YT", "name": "Mayotte" },
|
||||
{ "code": "ZA", "name": "South Africa" },
|
||||
{ "code": "ZM", "name": "Zambia" },
|
||||
{ "code": "ZW", "name": "Zimbabwe" }
|
||||
export interface ICountryCode {
|
||||
code: string;
|
||||
name: string;
|
||||
phonePrefix: string;
|
||||
}
|
||||
|
||||
export const countryCodeArray: ICountryCode[] = [
|
||||
{ "code": "AD", "name": "Andorra", "phonePrefix": "376" },
|
||||
{ "code": "AE", "name": "United Arab Emirates", "phonePrefix": "971" },
|
||||
{ "code": "AF", "name": "Afghanistan", "phonePrefix": "93" },
|
||||
{ "code": "AG", "name": "Antigua and Barbuda", "phonePrefix": "1-268" },
|
||||
{ "code": "AI", "name": "Anguilla", "phonePrefix": "1-264" },
|
||||
{ "code": "AL", "name": "Albania", "phonePrefix": "355" },
|
||||
{ "code": "AM", "name": "Armenia", "phonePrefix": "374" },
|
||||
{ "code": "AO", "name": "Angola", "phonePrefix": "244" },
|
||||
{ "code": "AQ", "name": "Antarctica", "phonePrefix": "672" },
|
||||
{ "code": "AR", "name": "Argentina", "phonePrefix": "54" },
|
||||
{ "code": "AS", "name": "American Samoa", "phonePrefix": "1-684" },
|
||||
{ "code": "AT", "name": "Austria", "phonePrefix": "43" },
|
||||
{ "code": "AU", "name": "Australia", "phonePrefix": "61" },
|
||||
{ "code": "AW", "name": "Aruba", "phonePrefix": "297" },
|
||||
{ "code": "AX", "name": "Åland Islands", "phonePrefix": "358" },
|
||||
{ "code": "AZ", "name": "Azerbaijan", "phonePrefix": "994" },
|
||||
{ "code": "BA", "name": "Bosnia and Herzegovina", "phonePrefix": "387" },
|
||||
{ "code": "BB", "name": "Barbados", "phonePrefix": "1-246" },
|
||||
{ "code": "BD", "name": "Bangladesh", "phonePrefix": "880" },
|
||||
{ "code": "BE", "name": "Belgium", "phonePrefix": "32" },
|
||||
{ "code": "BF", "name": "Burkina Faso", "phonePrefix": "226" },
|
||||
{ "code": "BG", "name": "Bulgaria", "phonePrefix": "359" },
|
||||
{ "code": "BH", "name": "Bahrain", "phonePrefix": "973" },
|
||||
{ "code": "BI", "name": "Burundi", "phonePrefix": "257" },
|
||||
{ "code": "BJ", "name": "Benin", "phonePrefix": "229" },
|
||||
{ "code": "BL", "name": "Saint Barthélemy", "phonePrefix": "590" },
|
||||
{ "code": "BM", "name": "Bermuda", "phonePrefix": "1-441" },
|
||||
{ "code": "BN", "name": "Brunei Darussalam", "phonePrefix": "673" },
|
||||
{ "code": "BO", "name": "Bolivia, Plurinational State of", "phonePrefix": "591" },
|
||||
{ "code": "BQ", "name": "Bonaire, Sint Eustatius and Saba", "phonePrefix": "599" },
|
||||
{ "code": "BR", "name": "Brazil", "phonePrefix": "55" },
|
||||
{ "code": "BS", "name": "Bahamas", "phonePrefix": "1-242" },
|
||||
{ "code": "BT", "name": "Bhutan", "phonePrefix": "975" },
|
||||
{ "code": "BV", "name": "Bouvet Island", "phonePrefix": "" },
|
||||
{ "code": "BW", "name": "Botswana", "phonePrefix": "267" },
|
||||
{ "code": "BY", "name": "Belarus", "phonePrefix": "375" },
|
||||
{ "code": "BZ", "name": "Belize", "phonePrefix": "501" },
|
||||
{ "code": "CA", "name": "Canada", "phonePrefix": "1" },
|
||||
{ "code": "CC", "name": "Cocos (Keeling) Islands", "phonePrefix": "61" },
|
||||
{ "code": "CD", "name": "Congo, Democratic Republic of the", "phonePrefix": "243" },
|
||||
{ "code": "CF", "name": "Central African Republic", "phonePrefix": "236" },
|
||||
{ "code": "CG", "name": "Congo", "phonePrefix": "242" },
|
||||
{ "code": "CH", "name": "Switzerland", "phonePrefix": "41" },
|
||||
{ "code": "CI", "name": "Côte d'Ivoire", "phonePrefix": "225" },
|
||||
{ "code": "CK", "name": "Cook Islands", "phonePrefix": "682" },
|
||||
{ "code": "CL", "name": "Chile", "phonePrefix": "56" },
|
||||
{ "code": "CM", "name": "Cameroon", "phonePrefix": "237" },
|
||||
{ "code": "CN", "name": "China", "phonePrefix": "86" },
|
||||
{ "code": "CO", "name": "Colombia", "phonePrefix": "57" },
|
||||
{ "code": "CR", "name": "Costa Rica", "phonePrefix": "506" },
|
||||
{ "code": "CU", "name": "Cuba", "phonePrefix": "53" },
|
||||
{ "code": "CV", "name": "Cabo Verde", "phonePrefix": "238" },
|
||||
{ "code": "CW", "name": "Curaçao", "phonePrefix": "599" },
|
||||
{ "code": "CX", "name": "Christmas Island", "phonePrefix": "61" },
|
||||
{ "code": "CY", "name": "Cyprus", "phonePrefix": "357" },
|
||||
{ "code": "CZ", "name": "Czechia", "phonePrefix": "420" },
|
||||
{ "code": "DE", "name": "Germany", "phonePrefix": "49" },
|
||||
{ "code": "DJ", "name": "Djibouti", "phonePrefix": "253" },
|
||||
{ "code": "DK", "name": "Denmark", "phonePrefix": "45" },
|
||||
{ "code": "DM", "name": "Dominica", "phonePrefix": "1-767" },
|
||||
{ "code": "DO", "name": "Dominican Republic", "phonePrefix": "1-809" },
|
||||
{ "code": "DZ", "name": "Algeria", "phonePrefix": "213" },
|
||||
{ "code": "EC", "name": "Ecuador", "phonePrefix": "593" },
|
||||
{ "code": "EE", "name": "Estonia", "phonePrefix": "372" },
|
||||
{ "code": "EG", "name": "Egypt", "phonePrefix": "20" },
|
||||
{ "code": "EH", "name": "Western Sahara", "phonePrefix": "212" },
|
||||
{ "code": "ER", "name": "Eritrea", "phonePrefix": "291" },
|
||||
{ "code": "ES", "name": "Spain", "phonePrefix": "34" },
|
||||
{ "code": "ET", "name": "Ethiopia", "phonePrefix": "251" },
|
||||
{ "code": "FI", "name": "Finland", "phonePrefix": "358" },
|
||||
{ "code": "FJ", "name": "Fiji", "phonePrefix": "679" },
|
||||
{ "code": "FK", "name": "Falkland Islands (Malvinas)", "phonePrefix": "500" },
|
||||
{ "code": "FM", "name": "Micronesia, Federated States of", "phonePrefix": "691" },
|
||||
{ "code": "FO", "name": "Faroe Islands", "phonePrefix": "298" },
|
||||
{ "code": "FR", "name": "France", "phonePrefix": "33" },
|
||||
{ "code": "GA", "name": "Gabon", "phonePrefix": "241" },
|
||||
{ "code": "GB", "name": "United Kingdom", "phonePrefix": "44" },
|
||||
{ "code": "GD", "name": "Grenada", "phonePrefix": "1-473" },
|
||||
{ "code": "GE", "name": "Georgia", "phonePrefix": "995" },
|
||||
{ "code": "GF", "name": "French Guiana", "phonePrefix": "594" },
|
||||
{ "code": "GG", "name": "Guernsey", "phonePrefix": "44" },
|
||||
{ "code": "GH", "name": "Ghana", "phonePrefix": "233" },
|
||||
{ "code": "GI", "name": "Gibraltar", "phonePrefix": "350" },
|
||||
{ "code": "GL", "name": "Greenland", "phonePrefix": "299" },
|
||||
{ "code": "GM", "name": "Gambia", "phonePrefix": "220" },
|
||||
{ "code": "GN", "name": "Guinea", "phonePrefix": "224" },
|
||||
{ "code": "GP", "name": "Guadeloupe", "phonePrefix": "590" },
|
||||
{ "code": "GQ", "name": "Equatorial Guinea", "phonePrefix": "240" },
|
||||
{ "code": "GR", "name": "Greece", "phonePrefix": "30" },
|
||||
{ "code": "GS", "name": "South Georgia and the South Sandwich Islands", "phonePrefix": "" },
|
||||
{ "code": "GT", "name": "Guatemala", "phonePrefix": "502" },
|
||||
{ "code": "GU", "name": "Guam", "phonePrefix": "1-671" },
|
||||
{ "code": "GW", "name": "Guinea-Bissau", "phonePrefix": "245" },
|
||||
{ "code": "GY", "name": "Guyana", "phonePrefix": "592" },
|
||||
{ "code": "HK", "name": "Hong Kong", "phonePrefix": "852" },
|
||||
{ "code": "HM", "name": "Heard Island and McDonald Islands", "phonePrefix": "" },
|
||||
{ "code": "HN", "name": "Honduras", "phonePrefix": "504" },
|
||||
{ "code": "HR", "name": "Croatia", "phonePrefix": "385" },
|
||||
{ "code": "HT", "name": "Haiti", "phonePrefix": "509" },
|
||||
{ "code": "HU", "name": "Hungary", "phonePrefix": "36" },
|
||||
{ "code": "ID", "name": "Indonesia", "phonePrefix": "62" },
|
||||
{ "code": "IE", "name": "Ireland", "phonePrefix": "353" },
|
||||
{ "code": "IL", "name": "Israel", "phonePrefix": "972" },
|
||||
{ "code": "IM", "name": "Isle of Man", "phonePrefix": "44" },
|
||||
{ "code": "IN", "name": "India", "phonePrefix": "91" },
|
||||
{ "code": "IO", "name": "British Indian Ocean Territory", "phonePrefix": "246" },
|
||||
{ "code": "IQ", "name": "Iraq", "phonePrefix": "964" },
|
||||
{ "code": "IR", "name": "Iran, Islamic Republic of", "phonePrefix": "98" },
|
||||
{ "code": "IS", "name": "Iceland", "phonePrefix": "354" },
|
||||
{ "code": "IT", "name": "Italy", "phonePrefix": "39" },
|
||||
{ "code": "JE", "name": "Jersey", "phonePrefix": "44" },
|
||||
{ "code": "JM", "name": "Jamaica", "phonePrefix": "1-876" },
|
||||
{ "code": "JO", "name": "Jordan", "phonePrefix": "962" },
|
||||
{ "code": "JP", "name": "Japan", "phonePrefix": "81" },
|
||||
{ "code": "KE", "name": "Kenya", "phonePrefix": "254" },
|
||||
{ "code": "KG", "name": "Kyrgyzstan", "phonePrefix": "996" },
|
||||
{ "code": "KH", "name": "Cambodia", "phonePrefix": "855" },
|
||||
{ "code": "KI", "name": "Kiribati", "phonePrefix": "686" },
|
||||
{ "code": "KM", "name": "Comoros", "phonePrefix": "269" },
|
||||
{ "code": "KN", "name": "Saint Kitts and Nevis", "phonePrefix": "1-869" },
|
||||
{ "code": "KP", "name": "Korea, Democratic People's Republic of", "phonePrefix": "850" },
|
||||
{ "code": "KR", "name": "Korea, Republic of", "phonePrefix": "82" },
|
||||
{ "code": "KW", "name": "Kuwait", "phonePrefix": "965" },
|
||||
{ "code": "KY", "name": "Cayman Islands", "phonePrefix": "1-345" },
|
||||
{ "code": "KZ", "name": "Kazakhstan", "phonePrefix": "7" },
|
||||
{ "code": "LA", "name": "Lao People's Democratic Republic", "phonePrefix": "856" },
|
||||
{ "code": "LB", "name": "Lebanon", "phonePrefix": "961" },
|
||||
{ "code": "LC", "name": "Saint Lucia", "phonePrefix": "1-758" },
|
||||
{ "code": "LI", "name": "Liechtenstein", "phonePrefix": "423" },
|
||||
{ "code": "LK", "name": "Sri Lanka", "phonePrefix": "94" },
|
||||
{ "code": "LR", "name": "Liberia", "phonePrefix": "231" },
|
||||
{ "code": "LS", "name": "Lesotho", "phonePrefix": "266" },
|
||||
{ "code": "LT", "name": "Lithuania", "phonePrefix": "370" },
|
||||
{ "code": "LU", "name": "Luxembourg", "phonePrefix": "352" },
|
||||
{ "code": "LV", "name": "Latvia", "phonePrefix": "371" },
|
||||
{ "code": "LY", "name": "Libya", "phonePrefix": "218" },
|
||||
{ "code": "MA", "name": "Morocco", "phonePrefix": "212" },
|
||||
{ "code": "MC", "name": "Monaco", "phonePrefix": "377" },
|
||||
{ "code": "MD", "name": "Moldova, Republic of", "phonePrefix": "373" },
|
||||
{ "code": "ME", "name": "Montenegro", "phonePrefix": "382" },
|
||||
{ "code": "MF", "name": "Saint Martin (French part)", "phonePrefix": "590" },
|
||||
{ "code": "MG", "name": "Madagascar", "phonePrefix": "261" },
|
||||
{ "code": "MH", "name": "Marshall Islands", "phonePrefix": "692" },
|
||||
{ "code": "MK", "name": "Macedonia, Republic of", "phonePrefix": "389" },
|
||||
{ "code": "ML", "name": "Mali", "phonePrefix": "223" },
|
||||
{ "code": "MM", "name": "Myanmar", "phonePrefix": "95" },
|
||||
{ "code": "MN", "name": "Mongolia", "phonePrefix": "976" },
|
||||
{ "code": "MO", "name": "Macao", "phonePrefix": "853" },
|
||||
{ "code": "MP", "name": "Northern Mariana Islands", "phonePrefix": "1-670" },
|
||||
{ "code": "MQ", "name": "Martinique", "phonePrefix": "596" },
|
||||
{ "code": "MR", "name": "Mauritania", "phonePrefix": "222" },
|
||||
{ "code": "MS", "name": "Montserrat", "phonePrefix": "1-664" },
|
||||
{ "code": "MT", "name": "Malta", "phonePrefix": "356" },
|
||||
{ "code": "MU", "name": "Mauritius", "phonePrefix": "230" },
|
||||
{ "code": "MV", "name": "Maldives", "phonePrefix": "960" },
|
||||
{ "code": "MW", "name": "Malawi", "phonePrefix": "265" },
|
||||
{ "code": "MX", "name": "Mexico", "phonePrefix": "52" },
|
||||
{ "code": "MY", "name": "Malaysia", "phonePrefix": "60" },
|
||||
{ "code": "MZ", "name": "Mozambique", "phonePrefix": "258" },
|
||||
{ "code": "NA", "name": "Namibia", "phonePrefix": "264" },
|
||||
{ "code": "NC", "name": "New Caledonia", "phonePrefix": "687" },
|
||||
{ "code": "NE", "name": "Niger", "phonePrefix": "227" },
|
||||
{ "code": "NF", "name": "Norfolk Island", "phonePrefix": "672" },
|
||||
{ "code": "NG", "name": "Nigeria", "phonePrefix": "234" },
|
||||
{ "code": "NI", "name": "Nicaragua", "phonePrefix": "505" },
|
||||
{ "code": "NL", "name": "Netherlands", "phonePrefix": "31" },
|
||||
{ "code": "NO", "name": "Norway", "phonePrefix": "47" },
|
||||
{ "code": "NP", "name": "Nepal", "phonePrefix": "977" },
|
||||
{ "code": "NR", "name": "Nauru", "phonePrefix": "674" },
|
||||
{ "code": "NU", "name": "Niue", "phonePrefix": "683" },
|
||||
{ "code": "NZ", "name": "New Zealand", "phonePrefix": "64" },
|
||||
{ "code": "OM", "name": "Oman", "phonePrefix": "968" },
|
||||
{ "code": "PA", "name": "Panama", "phonePrefix": "507" },
|
||||
{ "code": "PE", "name": "Peru", "phonePrefix": "51" },
|
||||
{ "code": "PF", "name": "French Polynesia", "phonePrefix": "689" },
|
||||
{ "code": "PG", "name": "Papua New Guinea", "phonePrefix": "675" },
|
||||
{ "code": "PH", "name": "Philippines", "phonePrefix": "63" },
|
||||
{ "code": "PK", "name": "Pakistan", "phonePrefix": "92" },
|
||||
{ "code": "PL", "name": "Poland", "phonePrefix": "48" },
|
||||
{ "code": "PM", "name": "Saint Pierre and Miquelon", "phonePrefix": "508" },
|
||||
{ "code": "PN", "name": "Pitcairn", "phonePrefix": "64" },
|
||||
{ "code": "PR", "name": "Puerto Rico", "phonePrefix": "1-787" },
|
||||
{ "code": "PS", "name": "Palestinian Territory, Occupied", "phonePrefix": "970" },
|
||||
{ "code": "PT", "name": "Portugal", "phonePrefix": "351" },
|
||||
{ "code": "PW", "name": "Palau", "phonePrefix": "680" },
|
||||
{ "code": "PY", "name": "Paraguay", "phonePrefix": "595" },
|
||||
{ "code": "QA", "name": "Qatar", "phonePrefix": "974" },
|
||||
{ "code": "RE", "name": "Réunion", "phonePrefix": "262" },
|
||||
{ "code": "RO", "name": "Romania", "phonePrefix": "40" },
|
||||
{ "code": "RS", "name": "Serbia", "phonePrefix": "381" },
|
||||
{ "code": "RU", "name": "Russian Federation", "phonePrefix": "7" },
|
||||
{ "code": "RW", "name": "Rwanda", "phonePrefix": "250" },
|
||||
{ "code": "SA", "name": "Saudi Arabia", "phonePrefix": "966" },
|
||||
{ "code": "SB", "name": "Solomon Islands", "phonePrefix": "677" },
|
||||
{ "code": "SC", "name": "Seychelles", "phonePrefix": "248" },
|
||||
{ "code": "SD", "name": "Sudan", "phonePrefix": "249" },
|
||||
{ "code": "SE", "name": "Sweden", "phonePrefix": "46" },
|
||||
{ "code": "SG", "name": "Singapore", "phonePrefix": "65" },
|
||||
{ "code": "SH", "name": "Saint Helena", "phonePrefix": "290" },
|
||||
{ "code": "SI", "name": "Slovenia", "phonePrefix": "386" },
|
||||
{ "code": "SJ", "name": "Svalbard and Jan Mayen", "phonePrefix": "47" },
|
||||
{ "code": "SK", "name": "Slovakia", "phonePrefix": "421" },
|
||||
{ "code": "SL", "name": "Sierra Leone", "phonePrefix": "232" },
|
||||
{ "code": "SM", "name": "San Marino", "phonePrefix": "378" },
|
||||
{ "code": "SN", "name": "Senegal", "phonePrefix": "221" },
|
||||
{ "code": "SO", "name": "Somalia", "phonePrefix": "252" },
|
||||
{ "code": "SR", "name": "Suriname", "phonePrefix": "597" },
|
||||
{ "code": "SS", "name": "South Sudan", "phonePrefix": "211" },
|
||||
{ "code": "ST", "name": "Sao Tome and Principe", "phonePrefix": "239" },
|
||||
{ "code": "SV", "name": "El Salvador", "phonePrefix": "503" },
|
||||
{ "code": "SX", "name": "Sint Maarten", "phonePrefix": "1-721" },
|
||||
{ "code": "SY", "name": "Syrian Arab Republic", "phonePrefix": "963" },
|
||||
{ "code": "SZ", "name": "Swaziland", "phonePrefix": "268" },
|
||||
{ "code": "TC", "name": "Turks and Caicos Islands", "phonePrefix": "1-649" },
|
||||
{ "code": "TD", "name": "Chad", "phonePrefix": "235" },
|
||||
{ "code": "TF", "name": "French Southern Territories", "phonePrefix": "" },
|
||||
{ "code": "TG", "name": "Togo", "phonePrefix": "228" },
|
||||
{ "code": "TH", "name": "Thailand", "phonePrefix": "66" },
|
||||
{ "code": "TJ", "name": "Tajikistan", "phonePrefix": "992" },
|
||||
{ "code": "TK", "name": "Tokelau", "phonePrefix": "690" },
|
||||
{ "code": "TL", "name": "Timor-Leste", "phonePrefix": "670" },
|
||||
{ "code": "TM", "name": "Turkmenistan", "phonePrefix": "993" },
|
||||
{ "code": "TN", "name": "Tunisia", "phonePrefix": "216" },
|
||||
{ "code": "TO", "name": "Tonga", "phonePrefix": "676" },
|
||||
{ "code": "TR", "name": "Turkey", "phonePrefix": "90" },
|
||||
{ "code": "TT", "name": "Trinidad and Tobago", "phonePrefix": "1-868" },
|
||||
{ "code": "TV", "name": "Tuvalu", "phonePrefix": "688" },
|
||||
{ "code": "TW", "name": "Taiwan, Province of China", "phonePrefix": "886" },
|
||||
{ "code": "TZ", "name": "Tanzania, United Republic of", "phonePrefix": "255" },
|
||||
{ "code": "UA", "name": "Ukraine", "phonePrefix": "380" },
|
||||
{ "code": "UG", "name": "Uganda", "phonePrefix": "256" },
|
||||
{ "code": "UM", "name": "United States Minor Outlying Islands", "phonePrefix": "" },
|
||||
{ "code": "US", "name": "United States", "phonePrefix": "1" },
|
||||
{ "code": "UY", "name": "Uruguay", "phonePrefix": "598" },
|
||||
{ "code": "UZ", "name": "Uzbekistan", "phonePrefix": "998" },
|
||||
{ "code": "VA", "name": "Holy See", "phonePrefix": "379" },
|
||||
{ "code": "VC", "name": "Saint Vincent and the Grenadines", "phonePrefix": "1-784" },
|
||||
{ "code": "VE", "name": "Venezuela, Bolivarian Republic of", "phonePrefix": "58" },
|
||||
{ "code": "VG", "name": "Virgin Islands, British", "phonePrefix": "1-284" },
|
||||
{ "code": "VI", "name": "Virgin Islands, U.S.", "phonePrefix": "1-340" },
|
||||
{ "code": "VN", "name": "Viet Nam", "phonePrefix": "84" },
|
||||
{ "code": "VU", "name": "Vanuatu", "phonePrefix": "678" },
|
||||
{ "code": "WF", "name": "Wallis and Futuna", "phonePrefix": "681" },
|
||||
{ "code": "WS", "name": "Samoa", "phonePrefix": "685" },
|
||||
{ "code": "YE", "name": "Yemen", "phonePrefix": "967" },
|
||||
{ "code": "YT", "name": "Mayotte", "phonePrefix": "262" },
|
||||
{ "code": "ZA", "name": "South Africa", "phonePrefix": "27" },
|
||||
{ "code": "ZM", "name": "Zambia", "phonePrefix": "260" },
|
||||
{ "code": "ZW", "name": "Zimbabwe", "phonePrefix": "263" }
|
||||
];
|
||||
+1
-3
@@ -1,3 +1 @@
|
||||
import * as plugins from './smarti18n.plugins.js';
|
||||
|
||||
export let demoExport = 'Hi there! :) This is an exported string';
|
||||
export * from './countrycodes.js';
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
const removeme = {};
|
||||
export {
|
||||
removeme
|
||||
}
|
||||
export {};
|
||||
|
||||
+3
-1
@@ -5,8 +5,10 @@
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"noImplicitAny": true,
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
"verbatimModuleSyntax": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
|
||||
Reference in New Issue
Block a user