intl-tel-input 24.3.7 → 24.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -16
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/index.js +2 -0
- package/build/js/i18n/no/countries.js +245 -0
- package/build/js/i18n/no/index.js +5 -0
- package/build/js/i18n/no/interface.js +13 -0
- package/build/js/i18n/vi/countries.js +245 -0
- package/build/js/i18n/vi/index.js +5 -0
- package/build/js/i18n/vi/interface.js +13 -0
- package/build/js/intlTelInput.d.ts +38 -0
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +30 -35
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +16 -16
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +1 -1
- package/react/build/IntlTelInput.d.ts +38 -0
- package/react/build/IntlTelInput.js +1 -1
- package/react/build/IntlTelInputWithUtils.cjs +29 -34
- package/react/build/IntlTelInputWithUtils.js +29 -34
- package/vue/README.md +48 -4
- package/vue/build/IntlTelInput.mjs +38 -25
- package/vue/build/IntlTelInputWithUtils.mjs +100 -92
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# International Telephone Input [](https://app.travis-ci.com/jackocnr/intl-tel-input) <img src="https://img.shields.io/github/package-json/v/jackocnr/intl-tel-input.svg" alt="version"/> <img src="https://img.shields.io/npm/dm/intl-tel-input.svg" alt="downloads"/>
|
|
2
2
|
|
|
3
|
-
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vue-icon.png" alt="Vue logo" width="16px" /> NEWS: our <a href="https://github.com/jackocnr/intl-tel-input/tree/master/vue">Vue component</a
|
|
3
|
+
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vue-icon.png" alt="Vue logo" width="16px" /> NEWS: we now have our own <a href="https://github.com/jackocnr/intl-tel-input/tree/master/vue">Vue component</a>!
|
|
4
4
|
|
|
5
5
|
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/react.webp" alt="React logo" width="16px" /> NEWS: we now have our own <a href="https://github.com/jackocnr/intl-tel-input/tree/master/react">React component</a>! Play with it on <a href="https://intl-tel-input.com/storybook/?path=/docs/intltelinput--vanilla">Storybook</a>.
|
|
6
6
|
|
|
7
7
|
🗣️ NEWS: we now provide [translations](https://github.com/jackocnr/intl-tel-input/tree/master/build/js/i18n) in over 30 languages! [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
|
|
8
8
|
|
|
9
|
-
International Telephone Input is a JavaScript plugin for entering and validating international telephone numbers. It takes a regular input field, adds a searchable country dropdown, auto-detects the user's country, displays a relevant placeholder number, formats the number as you type, and provides comprehensive validation methods.
|
|
9
|
+
International Telephone Input is a JavaScript plugin for entering and validating international telephone numbers. It takes a regular input field, adds a searchable country dropdown, auto-detects the user's country, displays a relevant placeholder number, formats the number as you type, and provides comprehensive validation methods. Now includes React and Vue components.
|
|
10
10
|
|
|
11
11
|
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vanilla2.png" alt="Screenshot" width="265px" height="273px" />
|
|
12
12
|
|
|
@@ -14,11 +14,12 @@ If you find the plugin helpful, please consider [supporting the project](https:/
|
|
|
14
14
|
|
|
15
15
|
## Sponsored by
|
|
16
16
|
<img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/twilio.webp" height="100" alt="Twilio"/>
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
Use [Twilio's API to build phone verification, SMS 2FA, appointment reminders, marketing notifications and so much more](https://www.twilio.com/blog/international-telephone-input-twilio?utm_source=github&utm_medium=referral&utm_campaign=intl_tel_input). We can't wait to see what you build.
|
|
18
19
|
|
|
19
20
|
## Table of Contents
|
|
20
21
|
|
|
21
|
-
- [
|
|
22
|
+
- [React and Vue Components](#react-and-vue-components)
|
|
22
23
|
- [Demo and Examples](#demo-and-examples)
|
|
23
24
|
- [Mobile](#mobile)
|
|
24
25
|
- [Features](#features)
|
|
@@ -36,8 +37,8 @@ Use <a href="https://www.twilio.com/blog/international-telephone-input-twilio?ut
|
|
|
36
37
|
- [Contributing](#contributing)
|
|
37
38
|
- [Attributions](#attributions)
|
|
38
39
|
|
|
39
|
-
##
|
|
40
|
-
We now provide both
|
|
40
|
+
## React and Vue Components
|
|
41
|
+
We now provide both React and Vue components alongside the regular JavaScript plugin. This readme is for the JavaScript plugin. View the [React Component readme](https://github.com/jackocnr/intl-tel-input/blob/master/react/README.md) or the [Vue Component readme](https://github.com/jackocnr/intl-tel-input/blob/master/vue/README.md).
|
|
41
42
|
|
|
42
43
|
## Demo and Examples
|
|
43
44
|
You can view [a live demo](https://intl-tel-input.com) and see some examples of how to use the various options. Alternatively, try it for yourself by downloading the project and opening demo.html in a browser.
|
|
@@ -59,7 +60,7 @@ By default, on mobile devices we show a fullscreen popup instead of the inline d
|
|
|
59
60
|
* Accessibility provided via ARIA tags
|
|
60
61
|
* Typescript type definitions included
|
|
61
62
|
* Easily customise styles by overriding CSS variables
|
|
62
|
-
* React
|
|
63
|
+
* React and Vue components included
|
|
63
64
|
* Translations for country names (etc) provided for over 30 different languages
|
|
64
65
|
* Lots of initialisation options for customisation, as well as instance methods/events for interaction
|
|
65
66
|
|
|
@@ -73,16 +74,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
|
|
|
73
74
|
## Getting Started (Using a CDN)
|
|
74
75
|
1. Add the CSS
|
|
75
76
|
```html
|
|
76
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@24.
|
|
77
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/css/intlTelInput.css">
|
|
77
78
|
```
|
|
78
79
|
|
|
79
80
|
2. Add the plugin script and initialise it on your input element
|
|
80
81
|
```html
|
|
81
|
-
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@24.
|
|
82
|
+
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/js/intlTelInput.min.js"></script>
|
|
82
83
|
<script>
|
|
83
84
|
const input = document.querySelector("#phone");
|
|
84
85
|
window.intlTelInput(input, {
|
|
85
|
-
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@24.
|
|
86
|
+
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/js/utils.js",
|
|
86
87
|
});
|
|
87
88
|
</script>
|
|
88
89
|
```
|
|
@@ -335,7 +336,7 @@ Control when the country list appears as a fullscreen popup vs an inline dropdow
|
|
|
335
336
|
|
|
336
337
|
**utilsScript**
|
|
337
338
|
Type: `String` Default: `""` Example: `"/build/js/utils.js"`
|
|
338
|
-
This is one way to (lazy) load the included utils.js (to enable formatting/validation etc) - see [Loading The Utilities Script](#loading-the-utilities-script) for more options. You will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.
|
|
339
|
+
This is one way to (lazy) load the included utils.js (to enable formatting/validation etc) - see [Loading The Utilities Script](#loading-the-utilities-script) for more options. You will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/js/utils.js"`. The script is loaded via a [dynamic import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) statement, which means the URL cannot be relative - it must be absolute. The script is only fetched when you initialise the plugin, and additionally, only when the page has finished loading (on the window load event) to prevent blocking (the script is ~260KB). When instantiating the plugin, a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object is returned under the `promise` instance property, so you can do something like `iti.promise.then(callback)` to know when initialisation requests like this have finished. See [Utilities Script](#utilities-script) for more information.
|
|
339
340
|
|
|
340
341
|
**validationNumberType**
|
|
341
342
|
Type: `String` Default: `"MOBILE"`
|
|
@@ -553,7 +554,7 @@ The utils script provides lots of great functionality (see above section), but c
|
|
|
553
554
|
If you're not concerned about filesize (e.g. you're lazy loading this script), the easiest thing to do is to just use the full bundle /build/js/intlTelInputWithUtils.js, which comes with the utils script included. This script can be used exactly like the main intlTelInput.js - so it can either be loaded directly onto the page (which defines `window.intlTelInput` like usual), or it can be imported like so: `import intlTelInput from "intl-tel-input/intlTelInputWithUtils"`.
|
|
554
555
|
|
|
555
556
|
**Option 2: utilsScript**
|
|
556
|
-
If you *are* concerned about filesize, you can lazy load the utils script when the plugin initialises, using the `utilsScript` initialisation option. You will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.
|
|
557
|
+
If you *are* concerned about filesize, you can lazy load the utils script when the plugin initialises, using the `utilsScript` initialisation option. You will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.5.0/build/js/utils.js"`. If you want more control over when this file is lazy loaded, you can manually invoke the `loadUtils` static method, instead of using `utilsScript`.
|
|
557
558
|
|
|
558
559
|
## Troubleshooting
|
|
559
560
|
|
|
@@ -604,8 +605,4 @@ See the [contributing guide](https://github.com/jackocnr/intl-tel-input/blob/mas
|
|
|
604
605
|
* Formatting/validation/example number code from [libphonenumber](https://github.com/googlei18n/libphonenumber)
|
|
605
606
|
* Feature contributions are listed in the wiki: [Contributions](https://github.com/jackocnr/intl-tel-input/wiki/Contributions)
|
|
606
607
|
|
|
607
|
-
## Links
|
|
608
|
-
* List of [integrations with intl-tel-input](https://github.com/jackocnr/intl-tel-input/wiki/Integrations)
|
|
609
|
-
|
|
610
|
-
<img width="200" src="https://www.browserstack.com/images/layout/browserstack-logo-600x315.png" alt="BrowserStack"/><br />
|
|
611
608
|
Testing powered by [BrowserStack Open-Source Program](https://www.browserstack.com/open-source)
|
package/build/js/data.js
CHANGED
package/build/js/data.min.js
CHANGED
package/build/js/i18n/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export { default as ja, countryTranslations as jaCountryTranslations, interfaceT
|
|
|
20
20
|
export { default as ko, countryTranslations as koCountryTranslations, interfaceTranslations as koInterfaceTranslations } from "./ko";
|
|
21
21
|
export { default as mr, countryTranslations as mrCountryTranslations, interfaceTranslations as mrInterfaceTranslations } from "./mr";
|
|
22
22
|
export { default as nl, countryTranslations as nlCountryTranslations, interfaceTranslations as nlInterfaceTranslations } from "./nl";
|
|
23
|
+
export { default as no, countryTranslations as noCountryTranslations, interfaceTranslations as noInterfaceTranslations } from "./no";
|
|
23
24
|
export { default as pl, countryTranslations as plCountryTranslations, interfaceTranslations as plInterfaceTranslations } from "./pl";
|
|
24
25
|
export { default as pt, countryTranslations as ptCountryTranslations, interfaceTranslations as ptInterfaceTranslations } from "./pt";
|
|
25
26
|
export { default as ro, countryTranslations as roCountryTranslations, interfaceTranslations as roInterfaceTranslations } from "./ro";
|
|
@@ -30,4 +31,5 @@ export { default as te, countryTranslations as teCountryTranslations, interfaceT
|
|
|
30
31
|
export { default as th, countryTranslations as thCountryTranslations, interfaceTranslations as thInterfaceTranslations } from "./th";
|
|
31
32
|
export { default as tr, countryTranslations as trCountryTranslations, interfaceTranslations as trInterfaceTranslations } from "./tr";
|
|
32
33
|
export { default as ur, countryTranslations as urCountryTranslations, interfaceTranslations as urInterfaceTranslations } from "./ur";
|
|
34
|
+
export { default as vi, countryTranslations as viCountryTranslations, interfaceTranslations as viInterfaceTranslations } from "./vi";
|
|
33
35
|
export { default as zh, countryTranslations as zhCountryTranslations, interfaceTranslations as zhInterfaceTranslations } from "./zh";
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
const countryTranslations = {
|
|
2
|
+
ad: "Andorra",
|
|
3
|
+
ae: "De forente arabiske emirater",
|
|
4
|
+
af: "Afghanistan",
|
|
5
|
+
ag: "Antigua og Barbuda",
|
|
6
|
+
ai: "Anguilla",
|
|
7
|
+
al: "Albania",
|
|
8
|
+
am: "Armenia",
|
|
9
|
+
ao: "Angola",
|
|
10
|
+
ar: "Argentina",
|
|
11
|
+
as: "Amerikansk Samoa",
|
|
12
|
+
at: "Østerrike",
|
|
13
|
+
au: "Australia",
|
|
14
|
+
aw: "Aruba",
|
|
15
|
+
ax: "Åland",
|
|
16
|
+
az: "Aserbajdsjan",
|
|
17
|
+
ba: "Bosnia-Hercegovina",
|
|
18
|
+
bb: "Barbados",
|
|
19
|
+
bd: "Bangladesh",
|
|
20
|
+
be: "Belgia",
|
|
21
|
+
bf: "Burkina Faso",
|
|
22
|
+
bg: "Bulgaria",
|
|
23
|
+
bh: "Bahrain",
|
|
24
|
+
bi: "Burundi",
|
|
25
|
+
bj: "Benin",
|
|
26
|
+
bl: "Saint-Barthélemy",
|
|
27
|
+
bm: "Bermuda",
|
|
28
|
+
bn: "Brunei",
|
|
29
|
+
bo: "Bolivia",
|
|
30
|
+
bq: "Karibisk Nederland",
|
|
31
|
+
br: "Brasil",
|
|
32
|
+
bs: "Bahamas",
|
|
33
|
+
bt: "Bhutan",
|
|
34
|
+
bw: "Botswana",
|
|
35
|
+
by: "Hviterussland",
|
|
36
|
+
bz: "Belize",
|
|
37
|
+
ca: "Canada",
|
|
38
|
+
cc: "Kokosøyene",
|
|
39
|
+
cd: "Kongo-Kinshasa",
|
|
40
|
+
cf: "Den sentralafrikanske republikk",
|
|
41
|
+
cg: "Kongo-Brazzaville",
|
|
42
|
+
ch: "Sveits",
|
|
43
|
+
ci: "Elfenbenskysten",
|
|
44
|
+
ck: "Cookøyene",
|
|
45
|
+
cl: "Chile",
|
|
46
|
+
cm: "Kamerun",
|
|
47
|
+
cn: "Kina",
|
|
48
|
+
co: "Colombia",
|
|
49
|
+
cr: "Costa Rica",
|
|
50
|
+
cu: "Cuba",
|
|
51
|
+
cv: "Kapp Verde",
|
|
52
|
+
cw: "Curaçao",
|
|
53
|
+
cx: "Christmasøya",
|
|
54
|
+
cy: "Kypros",
|
|
55
|
+
cz: "Tsjekkia",
|
|
56
|
+
de: "Tyskland",
|
|
57
|
+
dj: "Djibouti",
|
|
58
|
+
dk: "Danmark",
|
|
59
|
+
dm: "Dominica",
|
|
60
|
+
do: "Den dominikanske republikk",
|
|
61
|
+
dz: "Algerie",
|
|
62
|
+
ec: "Ecuador",
|
|
63
|
+
ee: "Estland",
|
|
64
|
+
eg: "Egypt",
|
|
65
|
+
eh: "Vest-Sahara",
|
|
66
|
+
er: "Eritrea",
|
|
67
|
+
es: "Spania",
|
|
68
|
+
et: "Etiopia",
|
|
69
|
+
fi: "Finland",
|
|
70
|
+
fj: "Fiji",
|
|
71
|
+
fk: "Falklandsøyene",
|
|
72
|
+
fm: "Mikronesiaføderasjonen",
|
|
73
|
+
fo: "Færøyene",
|
|
74
|
+
fr: "Frankrike",
|
|
75
|
+
ga: "Gabon",
|
|
76
|
+
gb: "Storbritannia",
|
|
77
|
+
gd: "Grenada",
|
|
78
|
+
ge: "Georgia",
|
|
79
|
+
gf: "Fransk Guyana",
|
|
80
|
+
gg: "Guernsey",
|
|
81
|
+
gh: "Ghana",
|
|
82
|
+
gi: "Gibraltar",
|
|
83
|
+
gl: "Grønland",
|
|
84
|
+
gm: "Gambia",
|
|
85
|
+
gn: "Guinea",
|
|
86
|
+
gp: "Guadeloupe",
|
|
87
|
+
gq: "Ekvatorial-Guinea",
|
|
88
|
+
gr: "Hellas",
|
|
89
|
+
gt: "Guatemala",
|
|
90
|
+
gu: "Guam",
|
|
91
|
+
gw: "Guinea-Bissau",
|
|
92
|
+
gy: "Guyana",
|
|
93
|
+
hk: "Hongkong S.A.R. Kina",
|
|
94
|
+
hn: "Honduras",
|
|
95
|
+
hr: "Kroatia",
|
|
96
|
+
ht: "Haiti",
|
|
97
|
+
hu: "Ungarn",
|
|
98
|
+
id: "Indonesia",
|
|
99
|
+
ie: "Irland",
|
|
100
|
+
il: "Israel",
|
|
101
|
+
im: "Man",
|
|
102
|
+
in: "India",
|
|
103
|
+
io: "Det britiske territoriet i Indiahavet",
|
|
104
|
+
iq: "Irak",
|
|
105
|
+
ir: "Iran",
|
|
106
|
+
is: "Island",
|
|
107
|
+
it: "Italia",
|
|
108
|
+
je: "Jersey",
|
|
109
|
+
jm: "Jamaica",
|
|
110
|
+
jo: "Jordan",
|
|
111
|
+
jp: "Japan",
|
|
112
|
+
ke: "Kenya",
|
|
113
|
+
kg: "Kirgisistan",
|
|
114
|
+
kh: "Kambodsja",
|
|
115
|
+
ki: "Kiribati",
|
|
116
|
+
km: "Komorene",
|
|
117
|
+
kn: "Saint Kitts og Nevis",
|
|
118
|
+
kp: "Nord-Korea",
|
|
119
|
+
kr: "Sør-Korea",
|
|
120
|
+
kw: "Kuwait",
|
|
121
|
+
ky: "Caymanøyene",
|
|
122
|
+
kz: "Kasakhstan",
|
|
123
|
+
la: "Laos",
|
|
124
|
+
lb: "Libanon",
|
|
125
|
+
lc: "St. Lucia",
|
|
126
|
+
li: "Liechtenstein",
|
|
127
|
+
lk: "Sri Lanka",
|
|
128
|
+
lr: "Liberia",
|
|
129
|
+
ls: "Lesotho",
|
|
130
|
+
lt: "Litauen",
|
|
131
|
+
lu: "Luxemburg",
|
|
132
|
+
lv: "Latvia",
|
|
133
|
+
ly: "Libya",
|
|
134
|
+
ma: "Marokko",
|
|
135
|
+
mc: "Monaco",
|
|
136
|
+
md: "Moldova",
|
|
137
|
+
me: "Montenegro",
|
|
138
|
+
mf: "Saint-Martin",
|
|
139
|
+
mg: "Madagaskar",
|
|
140
|
+
mh: "Marshalløyene",
|
|
141
|
+
mk: "Nord-Makedonia",
|
|
142
|
+
ml: "Mali",
|
|
143
|
+
mm: "Myanmar (Burma)",
|
|
144
|
+
mn: "Mongolia",
|
|
145
|
+
mo: "Macao S.A.R. Kina",
|
|
146
|
+
mp: "Nord-Marianene",
|
|
147
|
+
mq: "Martinique",
|
|
148
|
+
mr: "Mauritania",
|
|
149
|
+
ms: "Montserrat",
|
|
150
|
+
mt: "Malta",
|
|
151
|
+
mu: "Mauritius",
|
|
152
|
+
mv: "Maldivene",
|
|
153
|
+
mw: "Malawi",
|
|
154
|
+
mx: "Mexico",
|
|
155
|
+
my: "Malaysia",
|
|
156
|
+
mz: "Mosambik",
|
|
157
|
+
na: "Namibia",
|
|
158
|
+
nc: "Ny-Caledonia",
|
|
159
|
+
ne: "Niger",
|
|
160
|
+
nf: "Norfolkøya",
|
|
161
|
+
ng: "Nigeria",
|
|
162
|
+
ni: "Nicaragua",
|
|
163
|
+
nl: "Nederland",
|
|
164
|
+
no: "Norge",
|
|
165
|
+
np: "Nepal",
|
|
166
|
+
nr: "Nauru",
|
|
167
|
+
nu: "Niue",
|
|
168
|
+
nz: "New Zealand",
|
|
169
|
+
om: "Oman",
|
|
170
|
+
pa: "Panama",
|
|
171
|
+
pe: "Peru",
|
|
172
|
+
pf: "Fransk Polynesia",
|
|
173
|
+
pg: "Papua Ny-Guinea",
|
|
174
|
+
ph: "Filippinene",
|
|
175
|
+
pk: "Pakistan",
|
|
176
|
+
pl: "Polen",
|
|
177
|
+
pm: "Saint-Pierre-et-Miquelon",
|
|
178
|
+
pr: "Puerto Rico",
|
|
179
|
+
ps: "Det palestinske området",
|
|
180
|
+
pt: "Portugal",
|
|
181
|
+
pw: "Palau",
|
|
182
|
+
py: "Paraguay",
|
|
183
|
+
qa: "Qatar",
|
|
184
|
+
re: "Réunion",
|
|
185
|
+
ro: "Romania",
|
|
186
|
+
rs: "Serbia",
|
|
187
|
+
ru: "Russland",
|
|
188
|
+
rw: "Rwanda",
|
|
189
|
+
sa: "Saudi-Arabia",
|
|
190
|
+
sb: "Salomonøyene",
|
|
191
|
+
sc: "Seychellene",
|
|
192
|
+
sd: "Sudan",
|
|
193
|
+
se: "Sverige",
|
|
194
|
+
sg: "Singapore",
|
|
195
|
+
sh: "St. Helena",
|
|
196
|
+
si: "Slovenia",
|
|
197
|
+
sj: "Svalbard og Jan Mayen",
|
|
198
|
+
sk: "Slovakia",
|
|
199
|
+
sl: "Sierra Leone",
|
|
200
|
+
sm: "San Marino",
|
|
201
|
+
sn: "Senegal",
|
|
202
|
+
so: "Somalia",
|
|
203
|
+
sr: "Surinam",
|
|
204
|
+
ss: "Sør-Sudan",
|
|
205
|
+
st: "São Tomé og Príncipe",
|
|
206
|
+
sv: "El Salvador",
|
|
207
|
+
sx: "Sint Maarten",
|
|
208
|
+
sy: "Syria",
|
|
209
|
+
sz: "Eswatini",
|
|
210
|
+
tc: "Turks- og Caicosøyene",
|
|
211
|
+
td: "Tsjad",
|
|
212
|
+
tg: "Togo",
|
|
213
|
+
th: "Thailand",
|
|
214
|
+
tj: "Tadsjikistan",
|
|
215
|
+
tk: "Tokelau",
|
|
216
|
+
tl: "Øst-Timor",
|
|
217
|
+
tm: "Turkmenistan",
|
|
218
|
+
tn: "Tunisia",
|
|
219
|
+
to: "Tonga",
|
|
220
|
+
tr: "Tyrkia",
|
|
221
|
+
tt: "Trinidad og Tobago",
|
|
222
|
+
tv: "Tuvalu",
|
|
223
|
+
tw: "Taiwan",
|
|
224
|
+
tz: "Tanzania",
|
|
225
|
+
ua: "Ukraina",
|
|
226
|
+
ug: "Uganda",
|
|
227
|
+
us: "USA",
|
|
228
|
+
uy: "Uruguay",
|
|
229
|
+
uz: "Usbekistan",
|
|
230
|
+
va: "Vatikanstaten",
|
|
231
|
+
vc: "St. Vincent og Grenadinene",
|
|
232
|
+
ve: "Venezuela",
|
|
233
|
+
vg: "De britiske jomfruøyene",
|
|
234
|
+
vi: "De amerikanske jomfruøyene",
|
|
235
|
+
vn: "Vietnam",
|
|
236
|
+
vu: "Vanuatu",
|
|
237
|
+
wf: "Wallis og Futuna",
|
|
238
|
+
ws: "Samoa",
|
|
239
|
+
ye: "Jemen",
|
|
240
|
+
yt: "Mayotte",
|
|
241
|
+
za: "Sør-Afrika",
|
|
242
|
+
zm: "Zambia",
|
|
243
|
+
zw: "Zimbabwe"
|
|
244
|
+
};
|
|
245
|
+
export default countryTranslations;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import countryTranslations from "./countries.js";
|
|
2
|
+
import interfaceTranslations from "./interface.js";
|
|
3
|
+
export { countryTranslations, interfaceTranslations };
|
|
4
|
+
const allTranslations = { ...countryTranslations, ...interfaceTranslations };
|
|
5
|
+
export default allTranslations;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const interfaceTranslations = {
|
|
2
|
+
selectedCountryAriaLabel: "Valgt land",
|
|
3
|
+
noCountrySelected: "Ingen land er valgt",
|
|
4
|
+
countryListAriaLabel: "Liste over land",
|
|
5
|
+
searchPlaceholder: "Leting",
|
|
6
|
+
zeroSearchResults: "Ingen resultater funnet",
|
|
7
|
+
oneSearchResult: "1 resultat funnet",
|
|
8
|
+
multipleSearchResults: "${count} resultater funnet",
|
|
9
|
+
// additional countries (not supported by country-list library)
|
|
10
|
+
ac: "Ascension Island",
|
|
11
|
+
xk: "Kosovo"
|
|
12
|
+
};
|
|
13
|
+
export default interfaceTranslations;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
const countryTranslations = {
|
|
2
|
+
ad: "Andorra",
|
|
3
|
+
ae: "Các Tiểu Vương quốc Ả Rập Thống nhất",
|
|
4
|
+
af: "Afghanistan",
|
|
5
|
+
ag: "Antigua và Barbuda",
|
|
6
|
+
ai: "Anguilla",
|
|
7
|
+
al: "Albania",
|
|
8
|
+
am: "Armenia",
|
|
9
|
+
ao: "Angola",
|
|
10
|
+
ar: "Argentina",
|
|
11
|
+
as: "Samoa thuộc Mỹ",
|
|
12
|
+
at: "Áo",
|
|
13
|
+
au: "Australia",
|
|
14
|
+
aw: "Aruba",
|
|
15
|
+
ax: "Quần đảo Åland",
|
|
16
|
+
az: "Azerbaijan",
|
|
17
|
+
ba: "Bosnia và Herzegovina",
|
|
18
|
+
bb: "Barbados",
|
|
19
|
+
bd: "Bangladesh",
|
|
20
|
+
be: "Bỉ",
|
|
21
|
+
bf: "Burkina Faso",
|
|
22
|
+
bg: "Bulgaria",
|
|
23
|
+
bh: "Bahrain",
|
|
24
|
+
bi: "Burundi",
|
|
25
|
+
bj: "Benin",
|
|
26
|
+
bl: "St. Barthélemy",
|
|
27
|
+
bm: "Bermuda",
|
|
28
|
+
bn: "Brunei",
|
|
29
|
+
bo: "Bolivia",
|
|
30
|
+
bq: "Ca-ri-bê Hà Lan",
|
|
31
|
+
br: "Brazil",
|
|
32
|
+
bs: "Bahamas",
|
|
33
|
+
bt: "Bhutan",
|
|
34
|
+
bw: "Botswana",
|
|
35
|
+
by: "Belarus",
|
|
36
|
+
bz: "Belize",
|
|
37
|
+
ca: "Canada",
|
|
38
|
+
cc: "Quần đảo Cocos (Keeling)",
|
|
39
|
+
cd: "Congo - Kinshasa",
|
|
40
|
+
cf: "Cộng hòa Trung Phi",
|
|
41
|
+
cg: "Congo - Brazzaville",
|
|
42
|
+
ch: "Thụy Sĩ",
|
|
43
|
+
ci: "Côte d’Ivoire",
|
|
44
|
+
ck: "Quần đảo Cook",
|
|
45
|
+
cl: "Chile",
|
|
46
|
+
cm: "Cameroon",
|
|
47
|
+
cn: "Trung Quốc",
|
|
48
|
+
co: "Colombia",
|
|
49
|
+
cr: "Costa Rica",
|
|
50
|
+
cu: "Cuba",
|
|
51
|
+
cv: "Cape Verde",
|
|
52
|
+
cw: "Curaçao",
|
|
53
|
+
cx: "Đảo Giáng Sinh",
|
|
54
|
+
cy: "Síp",
|
|
55
|
+
cz: "Séc",
|
|
56
|
+
de: "Đức",
|
|
57
|
+
dj: "Djibouti",
|
|
58
|
+
dk: "Đan Mạch",
|
|
59
|
+
dm: "Dominica",
|
|
60
|
+
do: "Cộng hòa Dominica",
|
|
61
|
+
dz: "Algeria",
|
|
62
|
+
ec: "Ecuador",
|
|
63
|
+
ee: "Estonia",
|
|
64
|
+
eg: "Ai Cập",
|
|
65
|
+
eh: "Tây Sahara",
|
|
66
|
+
er: "Eritrea",
|
|
67
|
+
es: "Tây Ban Nha",
|
|
68
|
+
et: "Ethiopia",
|
|
69
|
+
fi: "Phần Lan",
|
|
70
|
+
fj: "Fiji",
|
|
71
|
+
fk: "Quần đảo Falkland",
|
|
72
|
+
fm: "Micronesia",
|
|
73
|
+
fo: "Quần đảo Faroe",
|
|
74
|
+
fr: "Pháp",
|
|
75
|
+
ga: "Gabon",
|
|
76
|
+
gb: "Vương quốc Anh",
|
|
77
|
+
gd: "Grenada",
|
|
78
|
+
ge: "Georgia",
|
|
79
|
+
gf: "Guiana thuộc Pháp",
|
|
80
|
+
gg: "Guernsey",
|
|
81
|
+
gh: "Ghana",
|
|
82
|
+
gi: "Gibraltar",
|
|
83
|
+
gl: "Greenland",
|
|
84
|
+
gm: "Gambia",
|
|
85
|
+
gn: "Guinea",
|
|
86
|
+
gp: "Guadeloupe",
|
|
87
|
+
gq: "Guinea Xích Đạo",
|
|
88
|
+
gr: "Hy Lạp",
|
|
89
|
+
gt: "Guatemala",
|
|
90
|
+
gu: "Guam",
|
|
91
|
+
gw: "Guinea-Bissau",
|
|
92
|
+
gy: "Guyana",
|
|
93
|
+
hk: "Hồng Kông, Trung Quốc",
|
|
94
|
+
hn: "Honduras",
|
|
95
|
+
hr: "Croatia",
|
|
96
|
+
ht: "Haiti",
|
|
97
|
+
hu: "Hungary",
|
|
98
|
+
id: "Indonesia",
|
|
99
|
+
ie: "Ireland",
|
|
100
|
+
il: "Israel",
|
|
101
|
+
im: "Đảo Man",
|
|
102
|
+
in: "Ấn Độ",
|
|
103
|
+
io: "Lãnh thổ Ấn Độ Dương thuộc Anh",
|
|
104
|
+
iq: "Iraq",
|
|
105
|
+
ir: "Iran",
|
|
106
|
+
is: "Iceland",
|
|
107
|
+
it: "Italy",
|
|
108
|
+
je: "Jersey",
|
|
109
|
+
jm: "Jamaica",
|
|
110
|
+
jo: "Jordan",
|
|
111
|
+
jp: "Nhật Bản",
|
|
112
|
+
ke: "Kenya",
|
|
113
|
+
kg: "Kyrgyzstan",
|
|
114
|
+
kh: "Campuchia",
|
|
115
|
+
ki: "Kiribati",
|
|
116
|
+
km: "Comoros",
|
|
117
|
+
kn: "St. Kitts và Nevis",
|
|
118
|
+
kp: "Triều Tiên",
|
|
119
|
+
kr: "Hàn Quốc",
|
|
120
|
+
kw: "Kuwait",
|
|
121
|
+
ky: "Quần đảo Cayman",
|
|
122
|
+
kz: "Kazakhstan",
|
|
123
|
+
la: "Lào",
|
|
124
|
+
lb: "Li-băng",
|
|
125
|
+
lc: "St. Lucia",
|
|
126
|
+
li: "Liechtenstein",
|
|
127
|
+
lk: "Sri Lanka",
|
|
128
|
+
lr: "Liberia",
|
|
129
|
+
ls: "Lesotho",
|
|
130
|
+
lt: "Litva",
|
|
131
|
+
lu: "Luxembourg",
|
|
132
|
+
lv: "Latvia",
|
|
133
|
+
ly: "Libya",
|
|
134
|
+
ma: "Ma-rốc",
|
|
135
|
+
mc: "Monaco",
|
|
136
|
+
md: "Moldova",
|
|
137
|
+
me: "Montenegro",
|
|
138
|
+
mf: "St. Martin",
|
|
139
|
+
mg: "Madagascar",
|
|
140
|
+
mh: "Quần đảo Marshall",
|
|
141
|
+
mk: "Bắc Macedonia",
|
|
142
|
+
ml: "Mali",
|
|
143
|
+
mm: "Myanmar (Miến Điện)",
|
|
144
|
+
mn: "Mông Cổ",
|
|
145
|
+
mo: "Macao, Trung Quốc",
|
|
146
|
+
mp: "Quần đảo Bắc Mariana",
|
|
147
|
+
mq: "Martinique",
|
|
148
|
+
mr: "Mauritania",
|
|
149
|
+
ms: "Montserrat",
|
|
150
|
+
mt: "Malta",
|
|
151
|
+
mu: "Mauritius",
|
|
152
|
+
mv: "Maldives",
|
|
153
|
+
mw: "Malawi",
|
|
154
|
+
mx: "Mexico",
|
|
155
|
+
my: "Malaysia",
|
|
156
|
+
mz: "Mozambique",
|
|
157
|
+
na: "Namibia",
|
|
158
|
+
nc: "New Caledonia",
|
|
159
|
+
ne: "Niger",
|
|
160
|
+
nf: "Đảo Norfolk",
|
|
161
|
+
ng: "Nigeria",
|
|
162
|
+
ni: "Nicaragua",
|
|
163
|
+
nl: "Hà Lan",
|
|
164
|
+
no: "Na Uy",
|
|
165
|
+
np: "Nepal",
|
|
166
|
+
nr: "Nauru",
|
|
167
|
+
nu: "Niue",
|
|
168
|
+
nz: "New Zealand",
|
|
169
|
+
om: "Oman",
|
|
170
|
+
pa: "Panama",
|
|
171
|
+
pe: "Peru",
|
|
172
|
+
pf: "Polynesia thuộc Pháp",
|
|
173
|
+
pg: "Papua New Guinea",
|
|
174
|
+
ph: "Philippines",
|
|
175
|
+
pk: "Pakistan",
|
|
176
|
+
pl: "Ba Lan",
|
|
177
|
+
pm: "Saint Pierre và Miquelon",
|
|
178
|
+
pr: "Puerto Rico",
|
|
179
|
+
ps: "Lãnh thổ Palestine",
|
|
180
|
+
pt: "Bồ Đào Nha",
|
|
181
|
+
pw: "Palau",
|
|
182
|
+
py: "Paraguay",
|
|
183
|
+
qa: "Qatar",
|
|
184
|
+
re: "Réunion",
|
|
185
|
+
ro: "Romania",
|
|
186
|
+
rs: "Serbia",
|
|
187
|
+
ru: "Nga",
|
|
188
|
+
rw: "Rwanda",
|
|
189
|
+
sa: "Ả Rập Xê-út",
|
|
190
|
+
sb: "Quần đảo Solomon",
|
|
191
|
+
sc: "Seychelles",
|
|
192
|
+
sd: "Sudan",
|
|
193
|
+
se: "Thụy Điển",
|
|
194
|
+
sg: "Singapore",
|
|
195
|
+
sh: "St. Helena",
|
|
196
|
+
si: "Slovenia",
|
|
197
|
+
sj: "Svalbard và Jan Mayen",
|
|
198
|
+
sk: "Slovakia",
|
|
199
|
+
sl: "Sierra Leone",
|
|
200
|
+
sm: "San Marino",
|
|
201
|
+
sn: "Senegal",
|
|
202
|
+
so: "Somalia",
|
|
203
|
+
sr: "Suriname",
|
|
204
|
+
ss: "Nam Sudan",
|
|
205
|
+
st: "São Tomé và Príncipe",
|
|
206
|
+
sv: "El Salvador",
|
|
207
|
+
sx: "Sint Maarten",
|
|
208
|
+
sy: "Syria",
|
|
209
|
+
sz: "Swaziland",
|
|
210
|
+
tc: "Quần đảo Turks và Caicos",
|
|
211
|
+
td: "Chad",
|
|
212
|
+
tg: "Togo",
|
|
213
|
+
th: "Thái Lan",
|
|
214
|
+
tj: "Tajikistan",
|
|
215
|
+
tk: "Tokelau",
|
|
216
|
+
tl: "Timor-Leste",
|
|
217
|
+
tm: "Turkmenistan",
|
|
218
|
+
tn: "Tunisia",
|
|
219
|
+
to: "Tonga",
|
|
220
|
+
tr: "Thổ Nhĩ Kỳ",
|
|
221
|
+
tt: "Trinidad và Tobago",
|
|
222
|
+
tv: "Tuvalu",
|
|
223
|
+
tw: "Đài Loan",
|
|
224
|
+
tz: "Tanzania",
|
|
225
|
+
ua: "Ukraina",
|
|
226
|
+
ug: "Uganda",
|
|
227
|
+
us: "Hoa Kỳ",
|
|
228
|
+
uy: "Uruguay",
|
|
229
|
+
uz: "Uzbekistan",
|
|
230
|
+
va: "Thành Vatican",
|
|
231
|
+
vc: "St. Vincent và Grenadines",
|
|
232
|
+
ve: "Venezuela",
|
|
233
|
+
vg: "Quần đảo Virgin thuộc Anh",
|
|
234
|
+
vi: "Quần đảo Virgin thuộc Mỹ",
|
|
235
|
+
vn: "Việt Nam",
|
|
236
|
+
vu: "Vanuatu",
|
|
237
|
+
wf: "Wallis và Futuna",
|
|
238
|
+
ws: "Samoa",
|
|
239
|
+
ye: "Yemen",
|
|
240
|
+
yt: "Mayotte",
|
|
241
|
+
za: "Nam Phi",
|
|
242
|
+
zm: "Zambia",
|
|
243
|
+
zw: "Zimbabwe"
|
|
244
|
+
};
|
|
245
|
+
export default countryTranslations;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import countryTranslations from "./countries.js";
|
|
2
|
+
import interfaceTranslations from "./interface.js";
|
|
3
|
+
export { countryTranslations, interfaceTranslations };
|
|
4
|
+
const allTranslations = { ...countryTranslations, ...interfaceTranslations };
|
|
5
|
+
export default allTranslations;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const interfaceTranslations = {
|
|
2
|
+
selectedCountryAriaLabel: "Quốc gia đã chọn",
|
|
3
|
+
noCountrySelected: "Không có quốc gia nào được chọn",
|
|
4
|
+
countryListAriaLabel: "Danh sách các quốc gia",
|
|
5
|
+
searchPlaceholder: "Khám xét",
|
|
6
|
+
zeroSearchResults: "Không tìm thấy kết quả nào",
|
|
7
|
+
oneSearchResult: "Đã tìm thấy 1 kết quả",
|
|
8
|
+
multipleSearchResults: "Đã tìm thấy ${count} kết quả",
|
|
9
|
+
// additional countries (not supported by country-list library)
|
|
10
|
+
ac: "Đảo Ascension",
|
|
11
|
+
xk: "Kosovo"
|
|
12
|
+
};
|
|
13
|
+
export default interfaceTranslations;
|