intl-tel-input 25.3.1 → 25.4.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 CHANGED
@@ -75,16 +75,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
75
75
  ## Getting Started (Using a CDN)
76
76
  1. Add the CSS
77
77
  ```html
78
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.3.1/build/css/intlTelInput.css">
78
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.0/build/css/intlTelInput.css">
79
79
  ```
80
80
 
81
81
  2. Add the plugin script and initialise it on your input element
82
82
  ```html
83
- <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.3.1/build/js/intlTelInput.min.js"></script>
83
+ <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.0/build/js/intlTelInput.min.js"></script>
84
84
  <script>
85
85
  const input = document.querySelector("#phone");
86
86
  window.intlTelInput(input, {
87
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.3.1/build/js/utils.js"),
87
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.0/build/js/utils.js"),
88
88
  });
89
89
  </script>
90
90
  ```
@@ -295,6 +295,13 @@ intlTelInput(input, {
295
295
  oneSearchResult: "1 result found",
296
296
  // Screen reader text for when the search produces multiple results
297
297
  multipleSearchResults: "${count} results found",
298
+ // For more complex pluralisation cases e.g. Polish or Arabic, you can implement your own logic
299
+ // Note that if this function is defined, the plugin will ignore the "zero", "one" and "multiple" keys listed above
300
+ searchResultsText(count) {
301
+ if (count === 0) return "No results found";
302
+ if (count === 1) return "1 result found";
303
+ return `${count} results found`;
304
+ }
298
305
  }
299
306
  });
300
307
  ```
@@ -313,7 +320,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
313
320
  ```js
314
321
  // (A) import utils module from a CDN
315
322
  intlTelInput(htmlInputElement, {
316
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.3.1/build/js/utils.js"),
323
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.0/build/js/utils.js"),
317
324
  });
318
325
 
319
326
  // (B) import utils module from your own hosted version of utils.js
@@ -349,7 +356,8 @@ Set this to false to hide the flags e.g. for political reasons. Instead, it will
349
356
 
350
357
  **separateDialCode**
351
358
  Type: `Boolean` Default: `false`
352
- Display the selected country's international dial code next to the input, so it looks like it's part of the typed number. Since the user cannot edit the displayed dial code, they may try to type a new one - in this case, to avoid having two dial codes next to each other, we automatically open the country dropdown and put the new dial code in the search input instead. So if they type +54, then Argentina will be highlighted in the dropdown and they can simply press Enter to select it, updating the displayed dial code (this feature requires `allowDropdown` and `countrySearch` to be enabled). Play with this option on [Storybook](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--separatedialcode) (using the React component).
359
+ Display the selected country's international dial code next to the input, so it looks like it's part of the typed number. Since the user cannot edit the displayed dial code, they may try to type a new one - in this case, to avoid having two dial codes next to each other, we automatically open the country dropdown and put the new dial code in the search input instead. So if they type +54, then Argentina will be highlighted in the dropdown and they can simply press Enter to select it, updating the displayed dial code (this feature requires `allowDropdown` and `countrySearch` to be enabled). Play with this option on [Storybook](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--separatedialcode) (using the React component).
360
+ __Note: if the user enters their number with autocomplete or by copying and pasting it, and their number includes the international dial code, then this will be shown twice__
353
361
 
354
362
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/separate-dial-code4.png" width="267px" height="51px" alt="Separate Dial Code">
355
363
 
@@ -433,14 +441,16 @@ if (error === intlTelInput.utils.validationError.TOO_SHORT) {
433
441
  ```
434
442
 
435
443
  **isValidNumber**
436
- Check if the current number is valid based on its length - [see example](https://intl-tel-input.com/examples/validation-practical.html), which should be sufficient for most use cases. See `isValidNumberPrecise` (DANGEROUS) for more precise validation, but the advantage of `isValidNumber` is that it is much more future-proof as while countries around the world regularly update their number rules, they rarely change their number lengths. If this method returns `false`, you can use `getValidationError` to get more information. Respects the `validationNumberTypes` option (which is set to `["MOBILE"]` by default, meaning `isValidNumber` will only return `true` for mobile numbers). Requires the [utils script to be loaded](#loading-the-utilities-script).
444
+ (Note: only returns `true` for valid <ins>mobile numbers</ins> by default - see `validationNumberTypes`)
445
+ Check if the current number is valid based on its length - [see example](https://intl-tel-input.com/examples/validation-practical.html), which should be sufficient for most use cases. See `isValidNumberPrecise` (DANGEROUS) for more precise validation, but the advantage of `isValidNumber` is that it is much more future-proof, as while countries around the world regularly update their number rules, they rarely change their number lengths. If this method returns `false`, you can use `getValidationError` to get more information. Requires the [utils script to be loaded](#loading-the-utilities-script).
437
446
  ```js
438
447
  const isValid = iti.isValidNumber();
439
448
  ```
440
449
  Returns: `true`/`false`
441
450
 
442
451
  **isValidNumberPrecise** ⚠️ DANGEROUS
443
- Check if the current number is valid using precise matching rules for each country/area code etc - [see example](https://intl-tel-input.com/examples/validation.html). Note that these rules change each month for various countries around the world, so you need to be careful to constantly keep the plugin up-to-date (e.g. via an automated script) else <ins>you will start rejecting valid numbers</ins>. For a simpler and more future-proof form of validation, see `isValidNumber` above. If validation fails, you can use `getValidationError` to get more information. Respects the `validationNumberTypes` option (which is set to `["MOBILE"]` by default, meaning `isValidNumberPrecise` will only return `true` for mobile numbers). Requires the [utils script to be loaded](#loading-the-utilities-script).
452
+ (Note: only returns `true` for valid <ins>mobile numbers</ins> by default - see `validationNumberTypes`)
453
+ Check if the current number is valid using precise matching rules for each country/area code etc - [see example](https://intl-tel-input.com/examples/validation.html). Note that these rules change each month for various countries around the world, so you need to constantly keep the plugin up-to-date (e.g. via an automated script) else <ins>you will start rejecting valid numbers</ins>. For a simpler and more future-proof form of validation, see `isValidNumber` above. If validation fails, you can use `getValidationError` to get more information. Requires the [utils script to be loaded](#loading-the-utilities-script).
444
454
  ```js
445
455
  const isValid = iti.isValidNumberPrecise();
446
456
  ```
@@ -594,7 +604,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
594
604
  ```js
595
605
  // (A) import utils module from a CDN
596
606
  intlTelInput(htmlInputElement, {
597
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.3.1/build/js/utils.js"),
607
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.0/build/js/utils.js"),
598
608
  });
599
609
 
600
610
  // (B) import utils module from your own hosted version of utils.js
package/build/js/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.3.1
2
+ * International Telephone Input v25.4.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.3.1
2
+ * International Telephone Input v25.4.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1,245 +1,245 @@
1
1
  const countryTranslations = {
2
- ad: "Andorra",
3
- ae: "Araabia Ühendemiraadid",
4
- af: "Afganistan",
5
- ag: "Antigua ja Barbuda",
6
- ai: "Anguilla",
7
- al: "Albaania",
8
- am: "Armeenia",
9
- ao: "Angola",
10
- ar: "Argentina",
11
- as: "Ameerika Samoa",
12
- at: "Austria",
13
- au: "Austraalia",
14
- aw: "Aruba",
15
- ax: "Ahvenamaa",
16
- az: "Aserbaidžaan",
17
- ba: "Bosnia ja Hertsegoviina",
18
- bb: "Barbados",
19
- bd: "Bangladesh",
20
- be: "Belgia",
21
- bf: "Burkina Faso",
22
- bg: "Bulgaaria",
23
- bh: "Bahrein",
24
- bi: "Burundi",
25
- bj: "Benin",
26
- bl: "Saint-Barthélemy",
27
- bm: "Bermuda",
28
- bn: "Brunei",
29
- bo: "Boliivia",
30
- bq: "Kariibi Madalmaad",
31
- br: "Brasiilia",
32
- bs: "Bahama",
33
- bt: "Bhutan",
34
- bw: "Botswana",
35
- by: "Valgevene",
36
- bz: "Belize",
37
- ca: "Kanada",
38
- cc: "Kookossaared",
39
- cd: "Kongo-Kinshasa",
40
- cf: "Kesk-Aafrika Vabariik",
41
- cg: "Kongo-Brazzaville",
42
- ch: "Šveits",
43
- ci: "Elevandiluurannik",
44
- ck: "Cooki saared",
45
- cl: "Tšiili",
46
- cm: "Kamerun",
47
- cn: "Hiina",
48
- co: "Colombia",
49
- cr: "Costa Rica",
50
- cu: "Kuuba",
51
- cv: "Roheneemesaared",
2
+ ad: "Andorra nutome",
3
+ ae: "United Arab Emirates nutome",
4
+ af: "Afghanistan nutome",
5
+ ag: "́Antigua kple Barbuda nutome",
6
+ ai: "Anguilla nutome",
7
+ al: "Albania nutome",
8
+ am: "Armenia nutome",
9
+ ao: "Angola nutome",
10
+ ar: "Argentina nutome",
11
+ as: "Amerika Samoa nutome",
12
+ at: "Austria nutome",
13
+ au: "Australia nutome",
14
+ aw: "Aruba nutome",
15
+ ax: "Åland ƒudomekpo nutome",
16
+ az: "Azerbaijan nutome",
17
+ ba: "Bosnia kple Herzergovina nutome",
18
+ bb: "Barbados nutome",
19
+ bd: "Bangladesh nutome",
20
+ be: "Belgium nutome",
21
+ bf: "Burkina Faso nutome",
22
+ bg: "Bulgaria nutome",
23
+ bh: "Bahrain nutome",
24
+ bi: "Burundi nutome",
25
+ bj: "Benin nutome",
26
+ bl: "Saint Barthélemy nutome",
27
+ bm: "Bermuda nutome",
28
+ bn: "Brunei nutome",
29
+ bo: "Bolivia nutome",
30
+ bq: "Caribbean Netherlands",
31
+ br: "Brazil nutome",
32
+ bs: "Bahamas nutome",
33
+ bt: "Bhutan nutome",
34
+ bw: "Botswana nutome",
35
+ by: "Belarus nutome",
36
+ bz: "Belize nutome",
37
+ ca: "Canada nutome",
38
+ cc: "Kokos (Kiling) fudomekpo nutome",
39
+ cd: "Kongo Kinshasa nutome",
40
+ cf: "Titina Afrika repɔblik nutome",
41
+ cg: "Kongo Brazzaville nutome",
42
+ ch: "Switzerland nutome",
43
+ ci: "Kote d’Ivoire nutome",
44
+ ck: "Kook ƒudomekpo nutome",
45
+ cl: "Tsile nutome",
46
+ cm: "Kamerun nutome",
47
+ cn: "Tsaina nutome",
48
+ co: "Kolombia nutome",
49
+ cr: "Kosta Rika nutome",
50
+ cu: "Kuba nutome",
51
+ cv: "Kape Verde nutome",
52
52
  cw: "Curaçao",
53
- cx: "Jõulusaared",
54
- cy: "Küpros",
55
- cz: "Tšehhi",
56
- de: "Saksamaa",
57
- dj: "Djibouti",
58
- dk: "Taani",
59
- dm: "Dominica",
60
- do: "Dominikaani Vabariik",
61
- dz: "Alžeeria",
62
- ec: "Ecuador",
63
- ee: "Eesti",
64
- eg: "Egiptus",
65
- eh: "Lääne-Sahara",
66
- er: "Eritrea",
67
- es: "Hispaania",
68
- et: "Etioopia",
69
- fi: "Soome",
70
- fj: "Fidži",
71
- fk: "Falklandi saared",
72
- fm: "Mikroneesia",
73
- fo: "Fääri saared",
74
- fr: "Prantsusmaa",
75
- ga: "Gabon",
76
- gb: "Ühendkuningriik",
77
- gd: "Grenada",
78
- ge: "Gruusia",
79
- gf: "Prantsuse Guajaana",
80
- gg: "Guernsey",
81
- gh: "Ghana",
82
- gi: "Gibraltar",
83
- gl: "Gröönimaa",
84
- gm: "Gambia",
85
- gn: "Guinea",
86
- gp: "Guadeloupe",
87
- gq: "Ekvatoriaal-Guinea",
88
- gr: "Kreeka",
89
- gt: "Guatemala",
90
- gu: "Guam",
91
- gw: "Guinea-Bissau",
92
- gy: "Guyana",
93
- hk: "Hongkongi erihalduspiirkond",
94
- hn: "Honduras",
95
- hr: "Horvaatia",
96
- ht: "Haiti",
97
- hu: "Ungari",
98
- id: "Indoneesia",
99
- ie: "Iirimaa",
100
- il: "Iisrael",
101
- im: "Mani saar",
102
- in: "India",
103
- io: "Briti India ookeani ala",
104
- iq: "Iraak",
105
- ir: "Iraan",
106
- is: "Island",
107
- it: "Itaalia",
108
- je: "Jersey",
109
- jm: "Jamaica",
110
- jo: "Jordaania",
111
- jp: "Jaapan",
112
- ke: "Keenia",
113
- kg: "Kõrgõzstan",
114
- kh: "Kambodža",
115
- ki: "Kiribati",
116
- km: "Komoorid",
117
- kn: "Saint Kitts ja Nevis",
118
- kp: "Põhja-Korea",
119
- kr: "Lõuna-Korea",
120
- kw: "Kuveit",
121
- ky: "Kaimanisaared",
122
- kz: "Kasahstan",
123
- la: "Laos",
124
- lb: "Liibanon",
125
- lc: "Saint Lucia",
126
- li: "Liechtenstein",
127
- lk: "Sri Lanka",
128
- lr: "Libeeria",
129
- ls: "Lesotho",
130
- lt: "Leedu",
131
- lu: "Luksemburg",
132
- lv: "Läti",
133
- ly: "Liibüa",
134
- ma: "Maroko",
135
- mc: "Monaco",
136
- md: "Moldova",
137
- me: "Montenegro",
138
- mf: "Saint-Martin",
139
- mg: "Madagaskar",
140
- mh: "Marshalli saared",
141
- mk: "Põhja-Makedoonia",
142
- ml: "Mali",
143
- mm: "Myanmar",
144
- mn: "Mongoolia",
145
- mo: "Macau erihalduspiirkond",
146
- mp: "Põhja-Mariaanid",
147
- mq: "Martinique",
148
- mr: "Mauritaania",
149
- ms: "Montserrat",
150
- mt: "Malta",
151
- mu: "Mauritius",
152
- mv: "Maldiivid",
153
- mw: "Malawi",
154
- mx: "Mehhiko",
155
- my: "Malaisia",
156
- mz: "Mosambiik",
157
- na: "Namiibia",
158
- nc: "Uus-Kaledoonia",
159
- ne: "Niger",
160
- nf: "Norfolki saar",
161
- ng: "Nigeeria",
162
- ni: "Nicaragua",
163
- nl: "Holland",
164
- no: "Norra",
165
- np: "Nepal",
166
- nr: "Nauru",
167
- nu: "Niue",
168
- nz: "Uus-Meremaa",
169
- om: "Omaan",
170
- pa: "Panama",
171
- pe: "Peruu",
172
- pf: "Prantsuse Polüneesia",
173
- pg: "Paapua Uus-Guinea",
174
- ph: "Filipiinid",
175
- pk: "Pakistan",
176
- pl: "Poola",
177
- pm: "Saint-Pierre ja Miquelon",
178
- pr: "Puerto Rico",
179
- ps: "Palestiina alad",
180
- pt: "Portugal",
181
- pw: "Belau",
182
- py: "Paraguay",
183
- qa: "Katar",
184
- re: "Réunion",
185
- ro: "Rumeenia",
53
+ cx: "Kristmas ƒudomekpo nutome",
54
+ cy: "Saiprus nutome",
55
+ cz: "Tsɛk repɔblik nutome",
56
+ de: "Germania nutome",
57
+ dj: "Dzibuti nutome",
58
+ dk: "Denmark nutome",
59
+ dm: "Dominika nutome",
60
+ do: "Dominika repɔblik nutome",
61
+ dz: "Algeria nutome",
62
+ ec: "Ekuadɔ nutome",
63
+ ee: "Estonia nutome",
64
+ eg: "Egypte nutome",
65
+ eh: "Ɣetoɖoƒe Sahara nutome",
66
+ er: "Eritrea nutome",
67
+ es: "Spain nutome",
68
+ et: "Etiopia nutome",
69
+ fi: "Finland nutome",
70
+ fj: "Fidzi nutome",
71
+ fk: "Falkland ƒudomekpowo nutome",
72
+ fm: "Mikronesia nutome",
73
+ fo: "Faroe ƒudomekpowo nutome",
74
+ fr: "France nutome",
75
+ ga: "Gabɔn nutome",
76
+ gb: "United Kingdom nutome",
77
+ gd: "Grenada nutome",
78
+ ge: "Georgia nutome",
79
+ gf: "Frentsi Gayana nutome",
80
+ gg: "Guernse nutome",
81
+ gh: "Ghana nutome",
82
+ gi: "Gibraltar nutome",
83
+ gl: "Grinland nutome",
84
+ gm: "Gambia nutome",
85
+ gn: "Guini nutome",
86
+ gp: "Guadelupe nutome",
87
+ gq: "Ekuatorial Guini nutome",
88
+ gr: "Greece nutome",
89
+ gt: "Guatemala nutome",
90
+ gu: "Guam nutome",
91
+ gw: "Gini-Bisao nutome",
92
+ gy: "Guyanadu",
93
+ hk: "Hɔng Kɔng SAR Tsaina nutome",
94
+ hn: "Hondurasdu",
95
+ hr: "Kroatsia nutome",
96
+ ht: "Haiti nutome",
97
+ hu: "Hungari nutome",
98
+ id: "Indonesia nutome",
99
+ ie: "Ireland nutome",
100
+ il: "Israel nutome",
101
+ im: "Aisle of Man nutome",
102
+ in: "India nutome",
103
+ io: "Britaintɔwo ƒe india ƒudome nutome",
104
+ iq: "iraqdukɔ",
105
+ ir: "Iran nutome",
106
+ is: "Aiseland nutome",
107
+ it: "Italia nutome",
108
+ je: "Dzɛse nutome",
109
+ jm: "Dzamaika nutome",
110
+ jo: "Yordan nutome",
111
+ jp: "Dzapan nutome",
112
+ ke: "Kenya nutome",
113
+ kg: "Kirgizstan nutome",
114
+ kh: "Kambodia nutome",
115
+ ki: "Kiribati nutome",
116
+ km: "Komoros nutome",
117
+ kn: "Saint Kitis kple Nevis nutome",
118
+ kp: "Dziehe Korea nutome",
119
+ kr: "Anyiehe Korea nutome",
120
+ kw: "Kuwait nutome",
121
+ ky: "Kayman ƒudomekpowo nutome",
122
+ kz: "Kazakstan nutome",
123
+ la: "Laos nutome",
124
+ lb: "Lebanɔn nutome",
125
+ lc: "Saint Lusia nutome",
126
+ li: "Litsenstein nutome",
127
+ lk: "Sri Lanka nutome",
128
+ lr: "Liberia nutome",
129
+ ls: "Lɛsoto nutome",
130
+ lt: "Lituania nutome",
131
+ lu: "Lazembɔg nutome",
132
+ lv: "Latvia nutome",
133
+ ly: "Libya nutome",
134
+ ma: "Moroko nutome",
135
+ mc: "Monako nutome",
136
+ md: "Moldova nutome",
137
+ me: "Montenegro nutome",
138
+ mf: "Saint Martin nutome",
139
+ mg: "Madagaska nutome",
140
+ mh: "Marshal ƒudomekpowo nutome",
141
+ mk: "North Macedonia",
142
+ ml: "Mali nutome",
143
+ mm: "Myanmar (Burma) nutome",
144
+ mn: "Mongolia nutome",
145
+ mo: "Macau SAR Tsaina nutome",
146
+ mp: "Dziehe Marina ƒudomekpowo nutome",
147
+ mq: "Martiniki nutome",
148
+ mr: "Mauritania nutome",
149
+ ms: "Montserrat nutome",
150
+ mt: "Malta nutome",
151
+ mu: "mauritiusdukɔ",
152
+ mv: "maldivesdukɔ",
153
+ mw: "Malawi nutome",
154
+ mx: "Mexico nutome",
155
+ my: "Malaysia nutome",
156
+ mz: "Mozambiki nutome",
157
+ na: "Namibia nutome",
158
+ nc: "New Kaledonia nutome",
159
+ ne: "Niger nutome",
160
+ nf: "Norfolk ƒudomekpo nutome",
161
+ ng: "Nigeria nutome",
162
+ ni: "Nicaraguadukɔ",
163
+ nl: "Netherlands nutome",
164
+ no: "Norway nutome",
165
+ np: "Nepal nutome",
166
+ nr: "Nauru nutome",
167
+ nu: "Niue nutome",
168
+ nz: "New Zealand nutome",
169
+ om: "Oman nutome",
170
+ pa: "Panama nutome",
171
+ pe: "Peru nutome",
172
+ pf: "Frentsi Pɔlinesia nutome",
173
+ pg: "Papua New Gini nutome",
174
+ ph: "Filipini nutome",
175
+ pk: "Pakistan nutome",
176
+ pl: "Poland nutome",
177
+ pm: "Saint Pierre kple Mikelɔn nutome",
178
+ pr: "Puerto Riko nutome",
179
+ ps: "Palestinia nutome",
180
+ pt: "Portugal nutome",
181
+ pw: "Palau nutome",
182
+ py: "Paragua nutome",
183
+ qa: "Katar nutome",
184
+ re: "Réunion nutome",
185
+ ro: "Romania nutome",
186
186
  rs: "Serbia",
187
- ru: "Venemaa",
188
- rw: "Rwanda",
189
- sa: "Saudi Araabia",
190
- sb: "Saalomoni saared",
191
- sc: "Seišellid",
192
- sd: "Sudaan",
193
- se: "Rootsi",
194
- sg: "Singapur",
195
- sh: "Saint Helena",
196
- si: "Sloveenia",
197
- sj: "Svalbard ja Jan Mayen",
198
- sk: "Slovakkia",
199
- sl: "Sierra Leone",
200
- sm: "San Marino",
201
- sn: "Senegal",
202
- so: "Somaalia",
203
- sr: "Suriname",
204
- ss: "Lõuna-Sudaan",
205
- st: "São Tomé ja Príncipe",
206
- sv: "El Salvador",
187
+ ru: "Russia nutome",
188
+ rw: "Rwanda nutome",
189
+ sa: "Saudi Arabia nutome",
190
+ sb: "Solomon ƒudomekpowo nutome",
191
+ sc: "Seshɛls nutome",
192
+ sd: "Sudan nutome",
193
+ se: "Sweden nutome",
194
+ sg: "Singapɔr nutome",
195
+ sh: "Saint Helena nutome",
196
+ si: "Slovenia nutome",
197
+ sj: "Svalbard kple Yan Mayen nutome",
198
+ sk: "Slovakia nutome",
199
+ sl: "Sierra Leone nutome",
200
+ sm: "San Marino nutome",
201
+ sn: "Senegal nutome",
202
+ so: "Somalia nutome",
203
+ sr: "Suriname nutome",
204
+ ss: "South Sudan",
205
+ st: "São Tomé kple Príncipe nutome",
206
+ sv: "El Salvadɔ nutome",
207
207
  sx: "Sint Maarten",
208
- sy: "Süüria",
209
- sz: "Eswatini",
210
- tc: "Turks ja Caicos",
211
- td: "Tšaad",
212
- tg: "Togo",
213
- th: "Tai",
214
- tj: "Tadžikistan",
215
- tk: "Tokelau",
216
- tl: "Ida-Timor",
217
- tm: "Türkmenistan",
218
- tn: "Tuneesia",
219
- to: "Tonga",
220
- tr: "Türgi",
221
- tt: "Trinidad ja Tobago",
222
- tv: "Tuvalu",
223
- tw: "Taiwan",
224
- tz: "Tansaania",
225
- ua: "Ukraina",
226
- ug: "Uganda",
227
- us: "Ameerika Ühendriigid",
228
- uy: "Uruguay",
229
- uz: "Usbekistan",
230
- va: "Vatikan",
231
- vc: "Saint Vincent ja Grenadiinid",
232
- ve: "Venezuela",
233
- vg: "Briti Neitsisaared",
234
- vi: "USA Neitsisaared",
235
- vn: "Vietnam",
236
- vu: "Vanuatu",
237
- wf: "Wallis ja Futuna",
238
- ws: "Samoa",
239
- ye: "Jeemen",
240
- yt: "Mayotte",
241
- za: "Lõuna-Aafrika",
242
- zm: "Sambia",
243
- zw: "Zimbabwe"
208
+ sy: "Siria nutome",
209
+ sz: "Swaziland nutome",
210
+ tc: "Tɛks kple Kaikos ƒudomekpowo nutome",
211
+ td: "Tsad nutome",
212
+ tg: "Togo nutome",
213
+ th: "Thailand nutome",
214
+ tj: "Tajikistan nutome",
215
+ tk: "Tokelau nutome",
216
+ tl: "Timor-Leste nutome",
217
+ tm: "Tɛkmenistan nutome",
218
+ tn: "Tunisia nutome",
219
+ to: "Tonga nutome",
220
+ tr: "Tɛki nutome",
221
+ tt: "Trinidad kple Tobago nutome",
222
+ tv: "Tuvalu nutome",
223
+ tw: "Taiwan nutome",
224
+ tz: "Tanzania nutome",
225
+ ua: "Ukraine nutome",
226
+ ug: "Uganda nutome",
227
+ us: "USA nutome",
228
+ uy: "uruguaydukɔ",
229
+ uz: "Uzbekistan nutome",
230
+ va: "Vatikandu nutome",
231
+ vc: "Saint Vincent kple Grenadine nutome",
232
+ ve: "Venezuela nutome",
233
+ vg: "Britaintɔwo ƒe Virgin ƒudomekpowo nutome",
234
+ vi: "U.S. Vɛrgin ƒudomekpowo nutome",
235
+ vn: "Vietnam nutome",
236
+ vu: "Vanuatu nutome",
237
+ wf: "Wallis kple Futuna nutome",
238
+ ws: "Samoa nutome",
239
+ ye: "Yemen nutome",
240
+ yt: "Mayotte nutome",
241
+ za: "Anyiehe Africa nutome",
242
+ zm: "Zambia nutome",
243
+ zw: "Zimbabwe nutome"
244
244
  };
245
245
  export default countryTranslations;
@@ -34,5 +34,6 @@ export { default as th, countryTranslations as thCountryTranslations, interfaceT
34
34
  export { default as tr, countryTranslations as trCountryTranslations, interfaceTranslations as trInterfaceTranslations } from "./tr";
35
35
  export { default as uk, countryTranslations as ukCountryTranslations, interfaceTranslations as ukInterfaceTranslations } from "./uk";
36
36
  export { default as ur, countryTranslations as urCountryTranslations, interfaceTranslations as urInterfaceTranslations } from "./ur";
37
+ export { default as uz, countryTranslations as uzCountryTranslations, interfaceTranslations as uzInterfaceTranslations } from "./uz";
37
38
  export { default as vi, countryTranslations as viCountryTranslations, interfaceTranslations as viInterfaceTranslations } from "./vi";
38
39
  export { default as zh, countryTranslations as zhCountryTranslations, interfaceTranslations as zhInterfaceTranslations } from "./zh";
@@ -3,9 +3,17 @@ const interfaceTranslations = {
3
3
  noCountrySelected: "Nie wybrano kraju",
4
4
  countryListAriaLabel: "Lista krajów",
5
5
  searchPlaceholder: "Szukaj",
6
- zeroSearchResults: "Nie znaleziono wyników",
7
- oneSearchResult: "Znaleziono 1 wynik",
8
- multipleSearchResults: "Znaleziono ${count} ${count > 1 && count < 5 ? 'wyniki' : 'wyników'}",
6
+ searchResultsText(count) {
7
+ if (count === 0) {
8
+ return "Nie znaleziono wyników";
9
+ }
10
+ if (count === 1) {
11
+ return "Znaleziono 1 wynik";
12
+ }
13
+ const isFew = count % 10 >= 2 && count % 10 <= 4 && !(count % 100 >= 12 && count % 100 <= 14);
14
+ const suffix = isFew ? "wyniki" : "wyników";
15
+ return `Znaleziono ${count} ${suffix}`;
16
+ },
9
17
  // additional countries (not supported by country-list library)
10
18
  ac: "Wyspa Wniebowstąpienia",
11
19
  xk: "Kosowo"