intl-tel-input 25.11.3 → 25.12.1

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.
Files changed (55) hide show
  1. package/README.md +8 -8
  2. package/angular/README.md +6 -6
  3. package/angular/build/IntlTelInput.js +1 -1
  4. package/angular/build/IntlTelInputWithUtils.js +1 -1
  5. package/angular/build/types/intl-tel-input/i18n/index.d.ts +4 -0
  6. package/angular/build/types/intl-tel-input/i18n/lt/countries.d.ts +3 -0
  7. package/angular/build/types/intl-tel-input/i18n/lt/index.d.ts +6 -0
  8. package/angular/build/types/intl-tel-input/i18n/lt/interface.d.ts +3 -0
  9. package/angular/build/types/intl-tel-input/i18n/sl/countries.d.ts +3 -0
  10. package/angular/build/types/intl-tel-input/i18n/sl/index.d.ts +6 -0
  11. package/angular/build/types/intl-tel-input/i18n/sl/interface.d.ts +3 -0
  12. package/angular/build/types/intl-tel-input/i18n/sq/countries.d.ts +3 -0
  13. package/angular/build/types/intl-tel-input/i18n/sq/index.d.ts +6 -0
  14. package/angular/build/types/intl-tel-input/i18n/sq/interface.d.ts +3 -0
  15. package/angular/build/types/intl-tel-input/i18n/sr/countries.d.ts +3 -0
  16. package/angular/build/types/intl-tel-input/i18n/sr/index.d.ts +6 -0
  17. package/angular/build/types/intl-tel-input/i18n/sr/interface.d.ts +3 -0
  18. package/build/js/data.js +1 -1
  19. package/build/js/data.min.js +1 -1
  20. package/build/js/i18n/ar/interface.js +12 -2
  21. package/build/js/i18n/bs/interface.js +9 -2
  22. package/build/js/i18n/cs/interface.js +9 -2
  23. package/build/js/i18n/hr/interface.js +9 -2
  24. package/build/js/i18n/index.js +4 -0
  25. package/build/js/i18n/lt/countries.js +245 -0
  26. package/build/js/i18n/lt/index.js +5 -0
  27. package/build/js/i18n/lt/interface.js +26 -0
  28. package/build/js/i18n/ro/interface.js +7 -2
  29. package/build/js/i18n/ru/interface.js +9 -2
  30. package/build/js/i18n/sk/interface.js +9 -2
  31. package/build/js/i18n/sl/countries.js +245 -0
  32. package/build/js/i18n/sl/index.js +5 -0
  33. package/build/js/i18n/sl/interface.js +25 -0
  34. package/build/js/i18n/sq/countries.js +245 -0
  35. package/build/js/i18n/sq/index.js +5 -0
  36. package/build/js/i18n/sq/interface.js +14 -0
  37. package/build/js/i18n/sr/countries.js +245 -0
  38. package/build/js/i18n/sr/index.js +5 -0
  39. package/build/js/i18n/sr/interface.js +21 -0
  40. package/build/js/i18n/uk/interface.js +9 -2
  41. package/build/js/intlTelInput.d.ts +76 -0
  42. package/build/js/intlTelInput.js +2 -2
  43. package/build/js/intlTelInput.min.js +2 -2
  44. package/build/js/intlTelInputWithUtils.js +2 -2
  45. package/build/js/intlTelInputWithUtils.min.js +2 -2
  46. package/package.json +1 -1
  47. package/react/README.md +1 -1
  48. package/react/build/IntlTelInput.cjs +1 -1
  49. package/react/build/IntlTelInput.d.ts +76 -0
  50. package/react/build/IntlTelInput.js +1 -1
  51. package/react/build/IntlTelInputWithUtils.cjs +1 -1
  52. package/react/build/IntlTelInputWithUtils.js +1 -1
  53. package/vue/README.md +1 -1
  54. package/vue/build/IntlTelInput.mjs +1 -1
  55. package/vue/build/IntlTelInputWithUtils.mjs +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/angular.png" alt="Angular logo" width="16" /> NEWS: we now have our own <a href="https://github.com/jackocnr/intl-tel-input/tree/master/angular">Angular component</a>!
8
8
 
9
- 🗣️ NEWS: we now provide [translations](#translations) in over 30 languages! [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
9
+ 🗣️ NEWS: we now provide [translations](#translations) in over 40 languages! [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
10
10
 
11
11
  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. React, Vue and Angular components are also included.
12
12
 
@@ -68,7 +68,7 @@ By default, on mobile devices, we show a fullscreen popup instead of the inline
68
68
  * Typescript type definitions included
69
69
  * Easily customise styles by overriding CSS variables, e.g. support dark mode
70
70
  * React, Vue, and Angular components also included
71
- * Translations for country names (etc) provided in many different languages, and support for RTL layout
71
+ * Translations for country names (etc) provided in over 40 languages, and support for RTL layout
72
72
  * Lots of initialisation options for customisation, as well as instance methods/events for interaction
73
73
 
74
74
  ## Browser Compatibility
@@ -81,16 +81,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
81
81
  ## Getting Started (Using a CDN)
82
82
  1. Add the CSS
83
83
  ```html
84
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/css/intlTelInput.css">
84
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/css/intlTelInput.css">
85
85
  ```
86
86
 
87
87
  2. Add the plugin script and initialise it on your input element
88
88
  ```html
89
- <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/js/intlTelInput.min.js"></script>
89
+ <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/js/intlTelInput.min.js"></script>
90
90
  <script>
91
91
  const input = document.querySelector("#phone");
92
92
  window.intlTelInput(input, {
93
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/js/utils.js"),
93
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/js/utils.js"),
94
94
  });
95
95
  </script>
96
96
  ```
@@ -333,7 +333,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
333
333
  ```js
334
334
  // (A) import utils module from a CDN
335
335
  intlTelInput(htmlInputElement, {
336
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/js/utils.js"),
336
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/js/utils.js"),
337
337
  });
338
338
 
339
339
  // (B) import utils module from your own hosted version of utils.js
@@ -583,7 +583,7 @@ Example:
583
583
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vanilla-dark.png" alt="Screenshot" width="263" height="269" />
584
584
 
585
585
  ## Translations
586
- We provide [translations](https://github.com/jackocnr/intl-tel-input/tree/master/build/js/i18n) for the 200+ country names, as well as other user interface text (e.g. the placeholder text for the country search input) in over 30 languages. See the `i18n` option for details on how to use them. [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
586
+ We provide [translations](https://github.com/jackocnr/intl-tel-input/tree/master/build/js/i18n) for the 200+ country names, as well as other user interface text (e.g. the placeholder text for the country search input) in over 40 languages. See the `i18n` option for details on how to use them. [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
587
587
 
588
588
  Supported languages: Arabic, Bengali, Bosnian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Marathi, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Slovak, Spanish, Swedish, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese.
589
589
 
@@ -617,7 +617,7 @@ The `loadUtils` option takes a function that returns a Promise resolving to the
617
617
  ```js
618
618
  // (A) import utils module from a CDN
619
619
  intlTelInput(htmlInputElement, {
620
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/js/utils.js"),
620
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/js/utils.js"),
621
621
  });
622
622
 
623
623
  // (B) import utils module from your own hosted version of utils.js
package/angular/README.md CHANGED
@@ -14,7 +14,7 @@ Try it for yourself by downloading the project and opening /angular/demo/validat
14
14
 
15
15
  ## Getting Started
16
16
  ```html
17
- import IntlTelInput from "intl-tel-input/angularWithUtils";
17
+ import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils";
18
18
  import "intl-tel-input/styles";
19
19
 
20
20
  <intl-tel-input
@@ -27,15 +27,15 @@ import "intl-tel-input/styles";
27
27
  />
28
28
  ```
29
29
 
30
- See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation.
30
+ See the [validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation, or check out the [form demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/form/form.component.ts) for an alternative approach using `ReactiveFormsModule`.
31
31
 
32
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.3/build/js/utils.js"`.
32
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just `import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` 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 `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.1/build/js/utils.js"`.
33
33
 
34
34
  ## Props
35
35
  Here's a list of all of the current props you can pass to the IntlTelInput Angular component.
36
36
 
37
- **disabled**
38
- Type: `Boolean`, Default: `false`
37
+ **disabled**
38
+ Type: `Boolean`, Default: `false`
39
39
  Sets the disabled attribute of both the telephone input and selected country button. _Note: we recommend using this instead of `inputProps.disabled`._
40
40
 
41
41
  **initialValue**
@@ -83,4 +83,4 @@ You can access all of the plugin's [instance methods](https://github.com/jackocn
83
83
 
84
84
  ## Accessing Static Methods
85
85
 
86
- You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing `intlTelInput` from the same file as the angular component e.g. `import { intlTelInput } from "intl-tel-input/angular"` (note the lower case "i" in "intlTelInput"). You can then use this as you would with the main plugin e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.
86
+ You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing `intlTelInput` from the same file as the angular component e.g. `import { IntlTelInputComponent } from "intl-tel-input/angular"` (note the lower case "i" in "intlTelInput"). You can then use this as you would with the main plugin e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.
@@ -3799,7 +3799,7 @@ var intlTelInput = Object.assign((input, options) => {
3799
3799
  attachUtils,
3800
3800
  startedLoadingUtilsScript: false,
3801
3801
  startedLoadingAutoCountry: false,
3802
- version: "25.11.3"
3802
+ version: "25.12.1"
3803
3803
  });
3804
3804
  var intl_tel_input_default = intlTelInput;
3805
3805
 
@@ -3799,7 +3799,7 @@ var intlTelInput = Object.assign((input, options) => {
3799
3799
  attachUtils,
3800
3800
  startedLoadingUtilsScript: false,
3801
3801
  startedLoadingAutoCountry: false,
3802
- version: "25.11.3"
3802
+ version: "25.12.1"
3803
3803
  });
3804
3804
  var intl_tel_input_default = intlTelInput;
3805
3805
 
@@ -20,6 +20,7 @@ export { default as id, countryTranslations as idCountryTranslations, interfaceT
20
20
  export { default as it, countryTranslations as itCountryTranslations, interfaceTranslations as itInterfaceTranslations } from "./it";
21
21
  export { default as ja, countryTranslations as jaCountryTranslations, interfaceTranslations as jaInterfaceTranslations } from "./ja";
22
22
  export { default as ko, countryTranslations as koCountryTranslations, interfaceTranslations as koInterfaceTranslations } from "./ko";
23
+ export { default as lt, countryTranslations as ltCountryTranslations, interfaceTranslations as ltInterfaceTranslations } from "./lt";
23
24
  export { default as mr, countryTranslations as mrCountryTranslations, interfaceTranslations as mrInterfaceTranslations } from "./mr";
24
25
  export { default as nl, countryTranslations as nlCountryTranslations, interfaceTranslations as nlInterfaceTranslations } from "./nl";
25
26
  export { default as no, countryTranslations as noCountryTranslations, interfaceTranslations as noInterfaceTranslations } from "./no";
@@ -28,6 +29,9 @@ export { default as pt, countryTranslations as ptCountryTranslations, interfaceT
28
29
  export { default as ro, countryTranslations as roCountryTranslations, interfaceTranslations as roInterfaceTranslations } from "./ro";
29
30
  export { default as ru, countryTranslations as ruCountryTranslations, interfaceTranslations as ruInterfaceTranslations } from "./ru";
30
31
  export { default as sk, countryTranslations as skCountryTranslations, interfaceTranslations as skInterfaceTranslations } from "./sk";
32
+ export { default as sl, countryTranslations as slCountryTranslations, interfaceTranslations as slInterfaceTranslations } from "./sl";
33
+ export { default as sq, countryTranslations as sqCountryTranslations, interfaceTranslations as sqInterfaceTranslations } from "./sq";
34
+ export { default as sr, countryTranslations as srCountryTranslations, interfaceTranslations as srInterfaceTranslations } from "./sr";
31
35
  export { default as sv, countryTranslations as svCountryTranslations, interfaceTranslations as svInterfaceTranslations } from "./sv";
32
36
  export { default as te, countryTranslations as teCountryTranslations, interfaceTranslations as teInterfaceTranslations } from "./te";
33
37
  export { default as th, countryTranslations as thCountryTranslations, interfaceTranslations as thInterfaceTranslations } from "./th";
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
package/build/js/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.11.3
2
+ * International Telephone Input v25.12.1
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.11.3
2
+ * International Telephone Input v25.12.1
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -4,8 +4,18 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "قائمة الدول",
5
5
  searchPlaceholder: "يبحث",
6
6
  zeroSearchResults: "لم يتم العثور على نتائج",
7
- oneSearchResult: "تم العثور على نتيجة واحدة",
8
- multipleSearchResults: "تم العثور على ${count} من النتائج",
7
+ searchResultsText(count) {
8
+ if (count === 1) {
9
+ return "تم العثور على نتيجة واحدة";
10
+ }
11
+ if (count === 2) {
12
+ return "تم العثور على نتيجتين";
13
+ }
14
+ if (count % 100 >= 3 && count % 100 <= 10) {
15
+ return `تم العثور على ${count} نتائج`;
16
+ }
17
+ return `تم العثور على ${count} نتيجة`;
18
+ },
9
19
  // additional countries (not supported by country-list library)
10
20
  ac: "جزيرة الصعود",
11
21
  xk: "كوسوفو"
@@ -4,8 +4,15 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "Lista zemalja",
5
5
  searchPlaceholder: "Pretraži",
6
6
  zeroSearchResults: "Nema pronađenih rezultata",
7
- oneSearchResult: "Pronađen 1 rezultat",
8
- multipleSearchResults: "${count} rezultata pronađeno",
7
+ searchResultsText(count) {
8
+ const mod10 = count % 10;
9
+ const mod100 = count % 100;
10
+ if (mod10 === 1 && mod100 !== 11) {
11
+ return `Pronađen ${count} rezultat`;
12
+ }
13
+ const isFew = mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14);
14
+ return `${isFew ? "Pronađena" : "Pronađeno"} ${count} rezultata`;
15
+ },
9
16
  // additional countries (not supported by country-list library)
10
17
  ac: "Ascension",
11
18
  xk: "Kosovo"
@@ -4,8 +4,15 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "Seznam zemí",
5
5
  searchPlaceholder: "Vyhledat",
6
6
  zeroSearchResults: "Nebyly nalezeny žádné výsledky",
7
- oneSearchResult: "1 výsledek nalezen",
8
- multipleSearchResults: "${count} výsledků nalezeno",
7
+ searchResultsText(count) {
8
+ if (count === 1) {
9
+ return "Nalezen 1 výsledek";
10
+ }
11
+ if (count >= 2 && count <= 4) {
12
+ return `Nalezeny ${count} výsledky`;
13
+ }
14
+ return `Nalezeno ${count} výsledků`;
15
+ },
9
16
  // additional countries (not supported by country-list library)
10
17
  ac: "Ascension",
11
18
  xk: "Kosovo"
@@ -4,8 +4,15 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "Lista zemalja",
5
5
  searchPlaceholder: "Pretraži",
6
6
  zeroSearchResults: "Nema pronađenih rezultata",
7
- oneSearchResult: "Pronađen 1 rezultat",
8
- multipleSearchResults: "${count} rezultata pronađeno",
7
+ searchResultsText(count) {
8
+ const mod10 = count % 10;
9
+ const mod100 = count % 100;
10
+ if (mod10 === 1 && mod100 !== 11) {
11
+ return `Pronađen ${count} rezultat`;
12
+ }
13
+ const isFew = mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14);
14
+ return `${isFew ? "Pronađena" : "Pronađeno"} ${count} rezultata`;
15
+ },
9
16
  // additional countries (not supported by country-list library)
10
17
  ac: "Ascension",
11
18
  xk: "Kosovo"
@@ -20,6 +20,7 @@ export { default as id, countryTranslations as idCountryTranslations, interfaceT
20
20
  export { default as it, countryTranslations as itCountryTranslations, interfaceTranslations as itInterfaceTranslations } from "./it";
21
21
  export { default as ja, countryTranslations as jaCountryTranslations, interfaceTranslations as jaInterfaceTranslations } from "./ja";
22
22
  export { default as ko, countryTranslations as koCountryTranslations, interfaceTranslations as koInterfaceTranslations } from "./ko";
23
+ export { default as lt, countryTranslations as ltCountryTranslations, interfaceTranslations as ltInterfaceTranslations } from "./lt";
23
24
  export { default as mr, countryTranslations as mrCountryTranslations, interfaceTranslations as mrInterfaceTranslations } from "./mr";
24
25
  export { default as nl, countryTranslations as nlCountryTranslations, interfaceTranslations as nlInterfaceTranslations } from "./nl";
25
26
  export { default as no, countryTranslations as noCountryTranslations, interfaceTranslations as noInterfaceTranslations } from "./no";
@@ -28,6 +29,9 @@ export { default as pt, countryTranslations as ptCountryTranslations, interfaceT
28
29
  export { default as ro, countryTranslations as roCountryTranslations, interfaceTranslations as roInterfaceTranslations } from "./ro";
29
30
  export { default as ru, countryTranslations as ruCountryTranslations, interfaceTranslations as ruInterfaceTranslations } from "./ru";
30
31
  export { default as sk, countryTranslations as skCountryTranslations, interfaceTranslations as skInterfaceTranslations } from "./sk";
32
+ export { default as sl, countryTranslations as slCountryTranslations, interfaceTranslations as slInterfaceTranslations } from "./sl";
33
+ export { default as sq, countryTranslations as sqCountryTranslations, interfaceTranslations as sqInterfaceTranslations } from "./sq";
34
+ export { default as sr, countryTranslations as srCountryTranslations, interfaceTranslations as srInterfaceTranslations } from "./sr";
31
35
  export { default as sv, countryTranslations as svCountryTranslations, interfaceTranslations as svInterfaceTranslations } from "./sv";
32
36
  export { default as te, countryTranslations as teCountryTranslations, interfaceTranslations as teInterfaceTranslations } from "./te";
33
37
  export { default as th, countryTranslations as thCountryTranslations, interfaceTranslations as thInterfaceTranslations } from "./th";
@@ -0,0 +1,245 @@
1
+ const countryTranslations = {
2
+ ad: "Andora",
3
+ ae: "Jungtiniai Arabų Emyratai",
4
+ af: "Afganistanas",
5
+ ag: "Antigva ir Barbuda",
6
+ ai: "Angilija",
7
+ al: "Albanija",
8
+ am: "Armėnija",
9
+ ao: "Angola",
10
+ ar: "Argentina",
11
+ as: "Amerikos Samoa",
12
+ at: "Austrija",
13
+ au: "Australija",
14
+ aw: "Aruba",
15
+ ax: "Alandų Salos",
16
+ az: "Azerbaidžanas",
17
+ ba: "Bosnija ir Hercegovina",
18
+ bb: "Barbadosas",
19
+ bd: "Bangladešas",
20
+ be: "Belgija",
21
+ bf: "Burkina Fasas",
22
+ bg: "Bulgarija",
23
+ bh: "Bahreinas",
24
+ bi: "Burundis",
25
+ bj: "Beninas",
26
+ bl: "Sen Bartelemi",
27
+ bm: "Bermuda",
28
+ bn: "Brunėjus",
29
+ bo: "Bolivija",
30
+ bq: "Karibų Nyderlandai",
31
+ br: "Brazilija",
32
+ bs: "Bahamos",
33
+ bt: "Butanas",
34
+ bw: "Botsvana",
35
+ by: "Baltarusija",
36
+ bz: "Belizas",
37
+ ca: "Kanada",
38
+ cc: "Kokosų (Kilingo) Salos",
39
+ cd: "Kongas-Kinšasa",
40
+ cf: "Centrinės Afrikos Respublika",
41
+ cg: "Kongas-Brazavilis",
42
+ ch: "Šveicarija",
43
+ ci: "Dramblio Kaulo Krantas",
44
+ ck: "Kuko Salos",
45
+ cl: "Čilė",
46
+ cm: "Kamerūnas",
47
+ cn: "Kinija",
48
+ co: "Kolumbija",
49
+ cr: "Kosta Rika",
50
+ cu: "Kuba",
51
+ cv: "Žaliasis Kyšulys",
52
+ cw: "Kiurasao",
53
+ cx: "Kalėdų Sala",
54
+ cy: "Kipras",
55
+ cz: "Čekija",
56
+ de: "Vokietija",
57
+ dj: "Džibutis",
58
+ dk: "Danija",
59
+ dm: "Dominika",
60
+ do: "Dominikos Respublika",
61
+ dz: "Alžyras",
62
+ ec: "Ekvadoras",
63
+ ee: "Estija",
64
+ eg: "Egiptas",
65
+ eh: "Vakarų Sachara",
66
+ er: "Eritrėja",
67
+ es: "Ispanija",
68
+ et: "Etiopija",
69
+ fi: "Suomija",
70
+ fj: "Fidžis",
71
+ fk: "Folklando Salos",
72
+ fm: "Mikronezija",
73
+ fo: "Farerų Salos",
74
+ fr: "Prancūzija",
75
+ ga: "Gabonas",
76
+ gb: "Jungtinė Karalystė",
77
+ gd: "Grenada",
78
+ ge: "Gruzija",
79
+ gf: "Prancūzijos Gviana",
80
+ gg: "Gernsis",
81
+ gh: "Gana",
82
+ gi: "Gibraltaras",
83
+ gl: "Grenlandija",
84
+ gm: "Gambija",
85
+ gn: "Gvinėja",
86
+ gp: "Gvadelupa",
87
+ gq: "Pusiaujo Gvinėja",
88
+ gr: "Graikija",
89
+ gt: "Gvatemala",
90
+ gu: "Guamas",
91
+ gw: "Bisau Gvinėja",
92
+ gy: "Gajana",
93
+ hk: "Ypatingasis Administracinis Kinijos Regionas Honkongas",
94
+ hn: "Hondūras",
95
+ hr: "Kroatija",
96
+ ht: "Haitis",
97
+ hu: "Vengrija",
98
+ id: "Indonezija",
99
+ ie: "Airija",
100
+ il: "Izraelis",
101
+ im: "Meno Sala",
102
+ in: "Indija",
103
+ io: "Indijos Vandenyno Britų Sritis",
104
+ iq: "Irakas",
105
+ ir: "Iranas",
106
+ is: "Islandija",
107
+ it: "Italija",
108
+ je: "Džersis",
109
+ jm: "Jamaika",
110
+ jo: "Jordanija",
111
+ jp: "Japonija",
112
+ ke: "Kenija",
113
+ kg: "Kirgizija",
114
+ kh: "Kambodža",
115
+ ki: "Kiribatis",
116
+ km: "Komorai",
117
+ kn: "Sent Kitsas ir Nevis",
118
+ kp: "Šiaurės Korėja",
119
+ kr: "Pietų Korėja",
120
+ kw: "Kuveitas",
121
+ ky: "Kaimanų Salos",
122
+ kz: "Kazachstanas",
123
+ la: "Laosas",
124
+ lb: "Libanas",
125
+ lc: "Sent Lusija",
126
+ li: "Lichtenšteinas",
127
+ lk: "Šri Lanka",
128
+ lr: "Liberija",
129
+ ls: "Lesotas",
130
+ lt: "Lietuva",
131
+ lu: "Liuksemburgas",
132
+ lv: "Latvija",
133
+ ly: "Libija",
134
+ ma: "Marokas",
135
+ mc: "Monakas",
136
+ md: "Moldova",
137
+ me: "Juodkalnija",
138
+ mf: "Sen Martenas",
139
+ mg: "Madagaskaras",
140
+ mh: "Maršalo Salos",
141
+ mk: "Šiaurės Makedonija",
142
+ ml: "Malis",
143
+ mm: "Mianmaras (Birma)",
144
+ mn: "Mongolija",
145
+ mo: "Ypatingasis Administracinis Kinijos Regionas Makao",
146
+ mp: "Marianos Šiaurinės Salos",
147
+ mq: "Martinika",
148
+ mr: "Mauritanija",
149
+ ms: "Montseratas",
150
+ mt: "Malta",
151
+ mu: "Mauricijus",
152
+ mv: "Maldyvai",
153
+ mw: "Malavis",
154
+ mx: "Meksika",
155
+ my: "Malaizija",
156
+ mz: "Mozambikas",
157
+ na: "Namibija",
158
+ nc: "Naujoji Kaledonija",
159
+ ne: "Nigeris",
160
+ nf: "Norfolko sala",
161
+ ng: "Nigerija",
162
+ ni: "Nikaragva",
163
+ nl: "Nyderlandai",
164
+ no: "Norvegija",
165
+ np: "Nepalas",
166
+ nr: "Nauru",
167
+ nu: "Niujė",
168
+ nz: "Naujoji Zelandija",
169
+ om: "Omanas",
170
+ pa: "Panama",
171
+ pe: "Peru",
172
+ pf: "Prancūzijos Polinezija",
173
+ pg: "Papua Naujoji Gvinėja",
174
+ ph: "Filipinai",
175
+ pk: "Pakistanas",
176
+ pl: "Lenkija",
177
+ pm: "Sen Pjeras ir Mikelonas",
178
+ pr: "Puerto Rikas",
179
+ ps: "Palestinos teritorija",
180
+ pt: "Portugalija",
181
+ pw: "Palau",
182
+ py: "Paragvajus",
183
+ qa: "Kataras",
184
+ re: "Reunjonas",
185
+ ro: "Rumunija",
186
+ rs: "Serbija",
187
+ ru: "Rusija",
188
+ rw: "Ruanda",
189
+ sa: "Saudo Arabija",
190
+ sb: "Saliamono Salos",
191
+ sc: "Seišeliai",
192
+ sd: "Sudanas",
193
+ se: "Švedija",
194
+ sg: "Singapūras",
195
+ sh: "Šv. Elenos Sala",
196
+ si: "Slovėnija",
197
+ sj: "Svalbardas ir Janas Majenas",
198
+ sk: "Slovakija",
199
+ sl: "Siera Leonė",
200
+ sm: "San Marinas",
201
+ sn: "Senegalas",
202
+ so: "Somalis",
203
+ sr: "Surinamas",
204
+ ss: "Pietų Sudanas",
205
+ st: "San Tomė ir Prinsipė",
206
+ sv: "Salvadoras",
207
+ sx: "Sint Martenas",
208
+ sy: "Sirija",
209
+ sz: "Svazilandas",
210
+ tc: "Terkso ir Kaikoso Salos",
211
+ td: "Čadas",
212
+ tg: "Togas",
213
+ th: "Tailandas",
214
+ tj: "Tadžikija",
215
+ tk: "Tokelau",
216
+ tl: "Rytų Timoras",
217
+ tm: "Turkmėnistanas",
218
+ tn: "Tunisas",
219
+ to: "Tonga",
220
+ tr: "Turkija",
221
+ tt: "Trinidadas ir Tobagas",
222
+ tv: "Tuvalu",
223
+ tw: "Taivanas",
224
+ tz: "Tanzanija",
225
+ ua: "Ukraina",
226
+ ug: "Uganda",
227
+ us: "Jungtinės Valstijos",
228
+ uy: "Urugvajus",
229
+ uz: "Uzbekistanas",
230
+ va: "Vatikano Miesto Valstybė",
231
+ vc: "Šventasis Vincentas ir Grenadinai",
232
+ ve: "Venesuela",
233
+ vg: "Didžiosios Britanijos Mergelių Salos",
234
+ vi: "Jungtinių Valstijų Mergelių Salos",
235
+ vn: "Vietnamas",
236
+ vu: "Vanuatu",
237
+ wf: "Volisas ir Futūna",
238
+ ws: "Samoa",
239
+ ye: "Jemenas",
240
+ yt: "Majotas",
241
+ za: "Pietų Afrika",
242
+ zm: "Zambija",
243
+ zw: "Zimbabvė"
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,26 @@
1
+ const interfaceTranslations = {
2
+ selectedCountryAriaLabel: "Pakeisti šalį, pasirinkta ${countryName} (${dialCode})",
3
+ noCountrySelected: "Pasirinkite šalį",
4
+ countryListAriaLabel: "Šalių sąrašas",
5
+ searchPlaceholder: "Paieška",
6
+ clearSearchAriaLabel: "Išvalyti paiešką",
7
+ zeroSearchResults: "Rezultatų nerasta",
8
+ searchResultsText(count) {
9
+ if (count === 1) {
10
+ return "Rastas 1 rezultatas";
11
+ }
12
+ const mod10 = count % 10;
13
+ const mod100 = count % 100;
14
+ if (mod10 === 1 && mod100 !== 11) {
15
+ return `Rasti ${count} rezultatas`;
16
+ }
17
+ if (mod10 >= 2 && mod10 <= 9 && !(mod100 >= 11 && mod100 <= 19)) {
18
+ return `Rasti ${count} rezultatai`;
19
+ }
20
+ return `Rasta ${count} rezultatų`;
21
+ },
22
+ // additional countries (not supported by country-list library)
23
+ ac: "Dangun Žengimo sala",
24
+ xk: "Kosovas"
25
+ };
26
+ export default interfaceTranslations;
@@ -4,8 +4,13 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "Lista țărilor",
5
5
  searchPlaceholder: "Căutare",
6
6
  zeroSearchResults: "Nici un rezultat gasit",
7
- oneSearchResult: "1 rezultat găsit",
8
- multipleSearchResults: "${count} rezultate găsite",
7
+ searchResultsText(count) {
8
+ if (count === 1) {
9
+ return "1 rezultat găsit";
10
+ }
11
+ const isFew = count % 100 >= 1 && count % 100 <= 19;
12
+ return `${count}${isFew ? "" : " de"} rezultate găsite`;
13
+ },
9
14
  // additional countries (not supported by country-list library)
10
15
  ac: "Insula Ascensiunii",
11
16
  xk: "Kosovo"
@@ -4,8 +4,15 @@ const interfaceTranslations = {
4
4
  countryListAriaLabel: "Список стран",
5
5
  searchPlaceholder: "Поиск",
6
6
  zeroSearchResults: "результатов не найдено",
7
- oneSearchResult: "найден 1 результат",
8
- multipleSearchResults: "Найдено ${count} результатов",
7
+ searchResultsText(count) {
8
+ const mod10 = count % 10;
9
+ const mod100 = count % 100;
10
+ if (mod10 === 1 && mod100 !== 11) {
11
+ return `найден ${count} результат`;
12
+ }
13
+ const isFew = mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14);
14
+ return `Найдено ${count} ${isFew ? "результата" : "результатов"}`;
15
+ },
9
16
  // additional countries (not supported by country-list library)
10
17
  ac: "Остров Вознесения",
11
18
  xk: "Косово"