diff --git a/packages/ods/package.json b/packages/ods/package.json index e08a6de39c..4a391dafb3 100644 --- a/packages/ods/package.json +++ b/packages/ods/package.json @@ -44,6 +44,7 @@ "@types/vanillajs-datepicker": "1.3.5", "autoprefixer": "10.4.17", "concurrently": "8.2.2", + "glob": "11.0.0", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-puppeteer": "10.0.1", diff --git a/packages/ods/src/components/phone-number/package.json b/packages/ods/src/components/phone-number/package.json index e240222ecd..2dca83d448 100644 --- a/packages/ods/src/components/phone-number/package.json +++ b/packages/ods/src/components/phone-number/package.json @@ -9,11 +9,12 @@ "clean": "rimraf .stencil coverage dist docs-api www", "doc": "typedoc --pretty --plugin ../../../scripts/typedoc-plugin-decorator.js && node ../../../scripts/generate-typedoc-md.js", "lint:scss": "stylelint 'src/components/**/*.scss'", - "lint:ts": "eslint '{src,tests}/**/*.{js,ts,tsx}'", + "lint:ts": "npm run validate && eslint '{src,tests}/**/*.{js,ts,tsx}'", "start": "stencil build --dev --watch --serve", "test:e2e": "stencil test --e2e --config stencil.config.ts", "test:e2e:ci": "tsc --noEmit && stencil test --e2e --ci --runInBand --config stencil.config.ts", "test:spec": "stencil test --spec --config stencil.config.ts --coverage", - "test:spec:ci": "tsc --noEmit && stencil test --config stencil.config.ts --spec --ci --coverage" + "test:spec:ci": "tsc --noEmit && stencil test --config stencil.config.ts --spec --ci --coverage", + "validate": "node scripts/validate-i18n-keys.js 'src/i18n/*.json'" } } diff --git a/packages/ods/src/components/phone-number/scripts/validate-i18n-keys.js b/packages/ods/src/components/phone-number/scripts/validate-i18n-keys.js new file mode 100644 index 0000000000..b44474bf9e --- /dev/null +++ b/packages/ods/src/components/phone-number/scripts/validate-i18n-keys.js @@ -0,0 +1,78 @@ +#! /usr/bin/env node + +const fs = require('fs'); +const { glob } = require('glob'); + +const expectedIsoCodes = [ + 'ad','ae','af','ag','ai','al','am','ao','aq','ar','as','at','au','aw','ax', + 'az','ba','bb','bd','be','bf','bg','bh','bi','bj','bl','bm','bn','bo','br', + 'bs','bt','bw','by','bz','ca','cc','cd','cf','cg','ch','ci','ck','cl','cm', + 'cn','co','cr','cu','cv','cw','cx','cy','cz','de','dj','dk','dm','do','dz', + 'ec','ee','eg','eh','er','es','et','fi','fj','fk','fm','fo','fr','ga','gb', + 'gd','ge','gg','gh','gi','gl','gm','gn','gq','gr','gs','gt','gu','gw','gy', + 'hk','hn','hr','ht','hu','id','ie','il','im','in','iq','ir','is','it','je', + 'jm','jo','jp','ke','kg','kh','ki','km','kn','kp','kr','kw','ky','kz','la', + 'lb','lc','li','lk','lr','ls','lt','lu','lv','ly','ma','mc','md','me','mf', + 'mg','mh','mk','ml','mm','mn','mo','mp','mq','mr','ms','mt','mu','mv','mw', + 'mx','my','mz','na','nc','ne','nf','ng','ni','nl','no','np','nr','nu','nz', + 'om','pa','pe','pf','pg','ph','pk','pl','pn','pr','ps','pt','pw','py','qa', + 'ro','rs','ru','rw','sa','sb','sc','sd','se','sg','sh','si','sk','sl','sm', + 'sn','so','sr','ss','st','sv','sy','sz','tc','td','tf','tg','th','tj','tk', + 'tl','tm','tn','to','tr','tt','tv','tw','tz','ua','ug','us','uy','uz','va', + 'vc','ve','vg','vi','vn','vu','wf','ws','ye','yt','za','zm','zw', +]; + +const dirPath = process.argv[2]; + +(async function main() { + const errors = []; + + try { + const filePaths = await glob(dirPath); + + for (const filePath of filePaths) { + const fileRows = JSON.parse(fs.readFileSync(filePath, 'utf8')) + const fileIsoCodes = fileRows.map((row) => row.isoCode); + + const emptyValues = fileRows.filter((row) => { + return !row.name; + }).map((row) => row.isoCode); + + const extraCodes = fileIsoCodes.filter((isoCode) => { + return expectedIsoCodes.indexOf(isoCode) < 0; + }); + + const missingCodes = expectedIsoCodes.filter((isoCode) => { + return fileIsoCodes.indexOf(isoCode) < 0; + }); + + if (emptyValues.length || extraCodes.length || missingCodes.length) { + errors.push({ emptyValues, extraCodes, filePath, missingCodes }); + } + } + } catch (error) { + console.error('Something went wrong during the i18n keys validation', error); + } + + if (errors.length) { + console.log('Following errors have been found during i18n keys validation:') + + errors.forEach((error) => { + console.log(`--- File ${error.filePath} ---`); + + (error.emptyValues || []).forEach((emptyValue) => { + console.log(`Empty isoCode value to fill: ${emptyValue}`); + }); + + (error.extraCodes || []).forEach((extraCode) => { + console.log(`Extra isoCode to remove: ${extraCode}`); + }); + + (error.missingCodes || []).forEach((missingCode) => { + console.log(`Missing isoCode to add: ${missingCode}`); + }); + }); + + process.exitCode = 1; + } +})(); diff --git a/packages/ods/src/components/phone-number/src/constants/phone-number-locale.ts b/packages/ods/src/components/phone-number/src/constants/phone-number-locale.ts index aeee8a4c3d..1a8abac27a 100644 --- a/packages/ods/src/components/phone-number/src/constants/phone-number-locale.ts +++ b/packages/ods/src/components/phone-number/src/constants/phone-number-locale.ts @@ -1,14 +1,3 @@ -enum ODS_PHONE_NUMBER_LOCALE { - en = 'en', - fr = 'fr', -} +import { ODS_LOCALE, ODS_LOCALES, type OdsLocale } from '../../../../utils/locale'; -type OdsPhoneNumberLocale = `${ODS_PHONE_NUMBER_LOCALE}`; - -const ODS_PHONE_NUMBER_LOCALES = Object.freeze(Object.values(ODS_PHONE_NUMBER_LOCALE)); - -export { - ODS_PHONE_NUMBER_LOCALE, - ODS_PHONE_NUMBER_LOCALES, - type OdsPhoneNumberLocale, -}; +export { ODS_LOCALE as ODS_PHONE_NUMBER_LOCALE, ODS_LOCALES as ODS_PHONE_NUMBER_LOCALES, type OdsLocale as OdsPhoneNumberLocale }; diff --git a/packages/ods/src/components/phone-number/src/controller/ods-phone-number.ts b/packages/ods/src/components/phone-number/src/controller/ods-phone-number.ts index 3d4a45761d..475bea1374 100644 --- a/packages/ods/src/components/phone-number/src/controller/ods-phone-number.ts +++ b/packages/ods/src/components/phone-number/src/controller/ods-phone-number.ts @@ -2,8 +2,14 @@ import { type PhoneNumber, PhoneNumberFormat, type PhoneNumberUtil } from 'googl import { ODS_PHONE_NUMBER_COUNTRY_ISO_CODE, ODS_PHONE_NUMBER_COUNTRY_ISO_CODES, type OdsPhoneNumberCountryIsoCode } from '../constants/phone-number-country-iso-code'; import { ODS_PHONE_NUMBER_COUNTRY_PRESET, type OdsPhoneNumberCountryPreset } from '../constants/phone-number-country-preset'; import { ODS_PHONE_NUMBER_LOCALE, ODS_PHONE_NUMBER_LOCALES, type OdsPhoneNumberLocale } from '../constants/phone-number-locale'; +import countriesTranslationDe from '../i18n/countries-de.json'; import countriesTranslationEn from '../i18n/countries-en.json'; +import countriesTranslationEs from '../i18n/countries-es.json'; import countriesTranslationFr from '../i18n/countries-fr.json'; +import countriesTranslationIt from '../i18n/countries-it.json'; +import countriesTranslationNl from '../i18n/countries-nl.json'; +import countriesTranslationPl from '../i18n/countries-pl.json'; +import countriesTranslationPt from '../i18n/countries-pt.json'; type TranslatedCountryMap = Map; @@ -56,9 +62,22 @@ function getPhoneNumberExample(isoCode: OdsPhoneNumberCountryIsoCode | undefined function getTranslatedCountries(locale: OdsPhoneNumberLocale): { isoCode: string, name: string }[] { switch (locale) { + case ODS_PHONE_NUMBER_LOCALE.de: + return countriesTranslationDe; case ODS_PHONE_NUMBER_LOCALE.en: return countriesTranslationEn; + case ODS_PHONE_NUMBER_LOCALE.es: + return countriesTranslationEs; case ODS_PHONE_NUMBER_LOCALE.fr: + return countriesTranslationFr; + case ODS_PHONE_NUMBER_LOCALE.it: + return countriesTranslationIt; + case ODS_PHONE_NUMBER_LOCALE.nl: + return countriesTranslationNl; + case ODS_PHONE_NUMBER_LOCALE.pl: + return countriesTranslationPl; + case ODS_PHONE_NUMBER_LOCALE.pt: + return countriesTranslationPt; default: return countriesTranslationFr; } diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-de.json b/packages/ods/src/components/phone-number/src/i18n/countries-de.json new file mode 100644 index 0000000000..6ddddd3985 --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-de.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andorra"}, + {"isoCode": "ae", "name": "Vereinigte Arabische Emirate"}, + {"isoCode": "af", "name": "Afghanistan"}, + {"isoCode": "ag", "name": "Antigua und Barbuda"}, + {"isoCode": "ai", "name": "Anguilla"}, + {"isoCode": "al", "name": "Albanien"}, + {"isoCode": "am", "name": "Armenien"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antarktis (Sonderstatus durch Antarktisvertrag)"}, + {"isoCode": "ar", "name": "Argentinien"}, + {"isoCode": "as", "name": "Amerikanisch-Samoa"}, + {"isoCode": "at", "name": "Österreich"}, + {"isoCode": "au", "name": "Australien"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Åland"}, + {"isoCode": "az", "name": "Aserbaidschan"}, + {"isoCode": "ba", "name": "Bosnien und Herzegowina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladesch"}, + {"isoCode": "be", "name": "Belgien"}, + {"isoCode": "bf", "name": "Burkina Faso"}, + {"isoCode": "bg", "name": "Bulgarien"}, + {"isoCode": "bh", "name": "Bahrain"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benin"}, + {"isoCode": "bl", "name": "Saint-Barthélemy"}, + {"isoCode": "bm", "name": "Bermuda"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Bolivien"}, + {"isoCode": "br", "name": "Brasilien"}, + {"isoCode": "bs", "name": "Bahamas"}, + {"isoCode": "bt", "name": "Bhutan"}, + {"isoCode": "bw", "name": "Botswana"}, + {"isoCode": "by", "name": "Belarus"}, + {"isoCode": "bz", "name": "Belize"}, + {"isoCode": "ca", "name": "Kanada"}, + {"isoCode": "cc", "name": "Kokosinseln"}, + {"isoCode": "cd", "name": "Kongo, Demokratische Republik"}, + {"isoCode": "cf", "name": "Zentralafrikanische Republik"}, + {"isoCode": "cg", "name": "Kongo, Republik"}, + {"isoCode": "ch", "name": "Schweiz"}, + {"isoCode": "ci", "name": "Elfenbeinküste"}, + {"isoCode": "ck", "name": "Cookinseln"}, + {"isoCode": "cl", "name": "Chile"}, + {"isoCode": "cm", "name": "Kamerun"}, + {"isoCode": "cn", "name": "China, Volksrepublik"}, + {"isoCode": "co", "name": "Kolumbien"}, + {"isoCode": "cr", "name": "Costa Rica"}, + {"isoCode": "cu", "name": "Kuba"}, + {"isoCode": "cv", "name": "Kap Verde"}, + {"isoCode": "cw", "name": "Curaçao"}, + {"isoCode": "cx", "name": "Weihnachtsinsel"}, + {"isoCode": "cy", "name": "Zypern"}, + {"isoCode": "cz", "name": "Tschechien"}, + {"isoCode": "de", "name": "Deutschland"}, + {"isoCode": "dj", "name": "Dschibuti"}, + {"isoCode": "dk", "name": "Dänemark"}, + {"isoCode": "dm", "name": "Dominica"}, + {"isoCode": "do", "name": "Dominikanische Republik"}, + {"isoCode": "dz", "name": "Algerien"}, + {"isoCode": "ec", "name": "Ecuador"}, + {"isoCode": "ee", "name": "Estland"}, + {"isoCode": "eg", "name": "Ägypten"}, + {"isoCode": "eh", "name": "Westsahara"}, + {"isoCode": "er", "name": "Eritrea"}, + {"isoCode": "es", "name": "Spanien"}, + {"isoCode": "et", "name": "Äthiopien"}, + {"isoCode": "fi", "name": "Finnland"}, + {"isoCode": "fj", "name": "Fidschi"}, + {"isoCode": "fk", "name": "Falklandinseln"}, + {"isoCode": "fm", "name": "Mikronesien"}, + {"isoCode": "fo", "name": "Färöer"}, + {"isoCode": "fr", "name": "Frankreich"}, + {"isoCode": "ga", "name": "Gabun"}, + {"isoCode": "gb", "name": "Vereinigtes Königreich"}, + {"isoCode": "gd", "name": "Grenada"}, + {"isoCode": "ge", "name": "Georgien"}, + {"isoCode": "gg", "name": "Guernsey (Kanalinsel)"}, + {"isoCode": "gh", "name": "Ghana"}, + {"isoCode": "gi", "name": "Gibraltar"}, + {"isoCode": "gl", "name": "Grönland"}, + {"isoCode": "gm", "name": "Gambia"}, + {"isoCode": "gn", "name": "Guinea"}, + {"isoCode": "gq", "name": "Äquatorialguinea"}, + {"isoCode": "gr", "name": "Griechenland"}, + {"isoCode": "gs", "name": "Südgeorgien und die Südlichen Sandwichinseln"}, + {"isoCode": "gt", "name": "Guatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Guinea-Bissau"}, + {"isoCode": "gy", "name": "Guyana"}, + {"isoCode": "hk", "name": "Hongkong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Kroatien"}, + {"isoCode": "ht", "name": "Haiti"}, + {"isoCode": "hu", "name": "Ungarn"}, + {"isoCode": "id", "name": "Indonesien"}, + {"isoCode": "ie", "name": "Irland"}, + {"isoCode": "il", "name": "Israel"}, + {"isoCode": "im", "name": "Insel Man"}, + {"isoCode": "in", "name": "Indien"}, + {"isoCode": "iq", "name": "Irak"}, + {"isoCode": "ir", "name": "Iran"}, + {"isoCode": "is", "name": "Island"}, + {"isoCode": "it", "name": "Italien"}, + {"isoCode": "je", "name": "Jersey (Kanalinsel)"}, + {"isoCode": "jm", "name": "Jamaika"}, + {"isoCode": "jo", "name": "Jordanien"}, + {"isoCode": "jp", "name": "Japan"}, + {"isoCode": "ke", "name": "Kenia"}, + {"isoCode": "kg", "name": "Kirgisistan"}, + {"isoCode": "kh", "name": "Kambodscha"}, + {"isoCode": "ki", "name": "Kiribati"}, + {"isoCode": "km", "name": "Komoren"}, + {"isoCode": "kn", "name": "St. Kitts und Nevis"}, + {"isoCode": "kp", "name": "Korea, Nord (Nordkorea)"}, + {"isoCode": "kr", "name": "Korea, Süd (Südkorea)"}, + {"isoCode": "kw", "name": "Kuwait"}, + {"isoCode": "ky", "name": "Kaimaninseln"}, + {"isoCode": "kz", "name": "Kasachstan"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Libanon"}, + {"isoCode": "lc", "name": "St. Lucia"}, + {"isoCode": "li", "name": "Liechtenstein"}, + {"isoCode": "lk", "name": "Sri Lanka"}, + {"isoCode": "lr", "name": "Liberia"}, + {"isoCode": "ls", "name": "Lesotho"}, + {"isoCode": "lt", "name": "Litauen"}, + {"isoCode": "lu", "name": "Luxemburg"}, + {"isoCode": "lv", "name": "Lettland"}, + {"isoCode": "ly", "name": "Libyen"}, + {"isoCode": "ma", "name": "Marokko"}, + {"isoCode": "mc", "name": "Monaco"}, + {"isoCode": "md", "name": "Moldau"}, + {"isoCode": "me", "name": "Montenegro"}, + {"isoCode": "mf", "name": "Saint-Martin (französischer Teil)"}, + {"isoCode": "mg", "name": "Madagaskar"}, + {"isoCode": "mh", "name": "Marshallinseln"}, + {"isoCode": "mk", "name": "Nordmazedonien"}, + {"isoCode": "ml", "name": "Mali"}, + {"isoCode": "mm", "name": "Myanmar"}, + {"isoCode": "mn", "name": "Mongolei"}, + {"isoCode": "mo", "name": "Macau"}, + {"isoCode": "mp", "name": "Nördliche Marianen"}, + {"isoCode": "mq", "name": "Martinique"}, + {"isoCode": "mr", "name": "Mauretanien"}, + {"isoCode": "ms", "name": "Montserrat"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Mauritius"}, + {"isoCode": "mv", "name": "Malediven"}, + {"isoCode": "mw", "name": "Malawi"}, + {"isoCode": "mx", "name": "Mexiko"}, + {"isoCode": "my", "name": "Malaysia"}, + {"isoCode": "mz", "name": "Mosambik"}, + {"isoCode": "na", "name": "Namibia"}, + {"isoCode": "nc", "name": "Neukaledonien"}, + {"isoCode": "ne", "name": "Niger"}, + {"isoCode": "nf", "name": "Norfolkinsel"}, + {"isoCode": "ng", "name": "Nigeria"}, + {"isoCode": "ni", "name": "Nicaragua"}, + {"isoCode": "nl", "name": "Niederlande"}, + {"isoCode": "no", "name": "Norwegen"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Neuseeland"}, + {"isoCode": "om", "name": "Oman"}, + {"isoCode": "pa", "name": "Panama"}, + {"isoCode": "pe", "name": "Peru"}, + {"isoCode": "pf", "name": "Französisch-Polynesien"}, + {"isoCode": "pg", "name": "Papua-Neuguinea"}, + {"isoCode": "ph", "name": "Philippinen"}, + {"isoCode": "pk", "name": "Pakistan"}, + {"isoCode": "pl", "name": "Polen"}, + {"isoCode": "pn", "name": "Pitcairninseln"}, + {"isoCode": "pr", "name": "Puerto Rico"}, + {"isoCode": "ps", "name": "Palästina"}, + {"isoCode": "pt", "name": "Portugal"}, + {"isoCode": "pw", "name": "Palau"}, + {"isoCode": "py", "name": "Paraguay"}, + {"isoCode": "qa", "name": "Katar"}, + {"isoCode": "ro", "name": "Rumänien"}, + {"isoCode": "rs", "name": "Serbien"}, + {"isoCode": "ru", "name": "Russland"}, + {"isoCode": "rw", "name": "Ruanda"}, + {"isoCode": "sa", "name": "Saudi-Arabien"}, + {"isoCode": "sb", "name": "Salomonen"}, + {"isoCode": "sc", "name": "Seychellen"}, + {"isoCode": "sd", "name": "Sudan"}, + {"isoCode": "se", "name": "Schweden"}, + {"isoCode": "sg", "name": "Singapur"}, + {"isoCode": "sh", "name": "St. Helena, Ascension und Tristan da Cunha"}, + {"isoCode": "si", "name": "Slowenien"}, + {"isoCode": "sk", "name": "Slowakei"}, + {"isoCode": "sl", "name": "Sierra Leone"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somalia"}, + {"isoCode": "sr", "name": "Suriname"}, + {"isoCode": "ss", "name": "Südsudan"}, + {"isoCode": "st", "name": "São Tomé und Príncipe"}, + {"isoCode": "sv", "name": "El Salvador"}, + {"isoCode": "sy", "name": "Syrien"}, + {"isoCode": "sz", "name": "Eswatini"}, + {"isoCode": "tc", "name": "Turks- und Caicosinseln"}, + {"isoCode": "td", "name": "Tschad"}, + {"isoCode": "tf", "name": "Französische Süd- und Antarktisgebiete"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Thailand"}, + {"isoCode": "tj", "name": "Tadschikistan"}, + {"isoCode": "tk", "name": "Tokelau"}, + {"isoCode": "tl", "name": "Osttimor"}, + {"isoCode": "tm", "name": "Turkmenistan"}, + {"isoCode": "tn", "name": "Tunesien"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Türkei"}, + {"isoCode": "tt", "name": "Trinidad und Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "China, Republik"}, + {"isoCode": "tz", "name": "Tansania"}, + {"isoCode": "ua", "name": "Ukraine"}, + {"isoCode": "ug", "name": "Uganda"}, + {"isoCode": "us", "name": "Vereinigte Staaten"}, + {"isoCode": "uy", "name": "Uruguay"}, + {"isoCode": "uz", "name": "Usbekistan"}, + {"isoCode": "va", "name": "Vatikanstadt"}, + {"isoCode": "vc", "name": "St. Vincent und die Grenadinen"}, + {"isoCode": "ve", "name": "Venezuela"}, + {"isoCode": "vg", "name": "Britische Jungferninseln"}, + {"isoCode": "vi", "name": "Amerikanische Jungferninseln"}, + {"isoCode": "vn", "name": "Vietnam"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis und Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Jemen"}, + {"isoCode": "yt", "name": "Mayotte"}, + {"isoCode": "za", "name": "Südafrika"}, + {"isoCode": "zm", "name": "Sambia"}, + {"isoCode": "zw", "name": "Simbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-en.json b/packages/ods/src/components/phone-number/src/i18n/countries-en.json index 69d8bd0859..5840849ba3 100644 --- a/packages/ods/src/components/phone-number/src/i18n/countries-en.json +++ b/packages/ods/src/components/phone-number/src/i18n/countries-en.json @@ -26,8 +26,8 @@ {"isoCode": "bj", "name": "Benin"}, {"isoCode": "bl", "name": "Saint Barthélemy"}, {"isoCode": "bm", "name": "Bermuda"}, - {"isoCode": "bn", "name": "Brunei Darussalam"}, - {"isoCode": "bo", "name": "Bolivia (Plurinational State of)"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Bolivia"}, {"isoCode": "br", "name": "Brazil"}, {"isoCode": "bs", "name": "Bahamas"}, {"isoCode": "bt", "name": "Bhutan"}, @@ -236,5 +236,5 @@ {"isoCode": "yt", "name": "Mayotte"}, {"isoCode": "za", "name": "South Africa"}, {"isoCode": "zm", "name": "Zambia"}, - {"isoCode": "zw", "name": "Zimbabwe" -}] + {"isoCode": "zw", "name": "Zimbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-es.json b/packages/ods/src/components/phone-number/src/i18n/countries-es.json new file mode 100644 index 0000000000..18e146d369 --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-es.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andorra"}, + {"isoCode": "ae", "name": "Emiratos Árabes Unidos"}, + {"isoCode": "af", "name": "Afganistán"}, + {"isoCode": "ag", "name": "Antigua y Barbuda"}, + {"isoCode": "ai", "name": "Anguila"}, + {"isoCode": "al", "name": "Albania"}, + {"isoCode": "am", "name": "Armenia"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antártida"}, + {"isoCode": "ar", "name": "Argentina"}, + {"isoCode": "as", "name": "Samoa Americana"}, + {"isoCode": "at", "name": "Austria"}, + {"isoCode": "au", "name": "Australia"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Åland"}, + {"isoCode": "az", "name": "Azerbaiyán"}, + {"isoCode": "ba", "name": "Bosnia y Herzegovina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladés"}, + {"isoCode": "be", "name": "Bélgica"}, + {"isoCode": "bf", "name": "Burkina Faso"}, + {"isoCode": "bg", "name": "Bulgaria"}, + {"isoCode": "bh", "name": "Baréin"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benín"}, + {"isoCode": "bl", "name": "San Bartolomé"}, + {"isoCode": "bm", "name": "Bermudas"}, + {"isoCode": "bn", "name": "Brunéi"}, + {"isoCode": "bo", "name": "Bolivia"}, + {"isoCode": "br", "name": "Brasil"}, + {"isoCode": "bs", "name": "Bahamas"}, + {"isoCode": "bt", "name": "Bután"}, + {"isoCode": "bw", "name": "Botsuana"}, + {"isoCode": "by", "name": "Bielorrusia"}, + {"isoCode": "bz", "name": "Belice"}, + {"isoCode": "ca", "name": "Canadá"}, + {"isoCode": "cc", "name": "Islas Cocos"}, + {"isoCode": "cd", "name": "República Democrática del Congo"}, + {"isoCode": "cf", "name": "República Centroafricana"}, + {"isoCode": "cg", "name": "República del Congo"}, + {"isoCode": "ch", "name": "Suiza"}, + {"isoCode": "ci", "name": "Costa de Marfil"}, + {"isoCode": "ck", "name": "Islas Cook"}, + {"isoCode": "cl", "name": "Chile"}, + {"isoCode": "cm", "name": "Camerún"}, + {"isoCode": "cn", "name": "China"}, + {"isoCode": "co", "name": "Colombia"}, + {"isoCode": "cr", "name": "Costa Rica"}, + {"isoCode": "cu", "name": "Cuba"}, + {"isoCode": "cv", "name": "Cabo Verde"}, + {"isoCode": "cw", "name": "Curazao"}, + {"isoCode": "cx", "name": "Isla de Navidad"}, + {"isoCode": "cy", "name": "Chipre"}, + {"isoCode": "cz", "name": "República Checa"}, + {"isoCode": "de", "name": "Alemania"}, + {"isoCode": "dj", "name": "Yibuti"}, + {"isoCode": "dk", "name": "Dinamarca"}, + {"isoCode": "dm", "name": "Dominica"}, + {"isoCode": "do", "name": "República Dominicana"}, + {"isoCode": "dz", "name": "Argelia"}, + {"isoCode": "ec", "name": "Ecuador"}, + {"isoCode": "ee", "name": "Estonia"}, + {"isoCode": "eg", "name": "Egipto"}, + {"isoCode": "eh", "name": "República Árabe Saharaui Democrática"}, + {"isoCode": "er", "name": "Eritrea"}, + {"isoCode": "es", "name": "España"}, + {"isoCode": "et", "name": "Etiopía"}, + {"isoCode": "fi", "name": "Finlandia"}, + {"isoCode": "fj", "name": "Fiyi"}, + {"isoCode": "fk", "name": "Islas Malvinas"}, + {"isoCode": "fm", "name": "Micronesia"}, + {"isoCode": "fo", "name": "Islas Feroe"}, + {"isoCode": "fr", "name": "Francia"}, + {"isoCode": "ga", "name": "Gabón"}, + {"isoCode": "gb", "name": "Reino Unido"}, + {"isoCode": "gd", "name": "Granada"}, + {"isoCode": "ge", "name": "Georgia"}, + {"isoCode": "gg", "name": "Guernsey"}, + {"isoCode": "gh", "name": "Ghana"}, + {"isoCode": "gi", "name": "Gibraltar"}, + {"isoCode": "gl", "name": "Groenlandia"}, + {"isoCode": "gm", "name": "Gambia"}, + {"isoCode": "gn", "name": "Guinea"}, + {"isoCode": "gq", "name": "Guinea Ecuatorial"}, + {"isoCode": "gr", "name": "Grecia"}, + {"isoCode": "gs", "name": "Islas Georgias del Sur y Sandwich del Sur"}, + {"isoCode": "gt", "name": "Guatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Guinea-Bisáu"}, + {"isoCode": "gy", "name": "Guyana"}, + {"isoCode": "hk", "name": "Hong Kong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Croacia"}, + {"isoCode": "ht", "name": "Haití"}, + {"isoCode": "hu", "name": "Hungría"}, + {"isoCode": "id", "name": "Indonesia"}, + {"isoCode": "ie", "name": "Irlanda"}, + {"isoCode": "il", "name": "Israel"}, + {"isoCode": "im", "name": "Isla de Man"}, + {"isoCode": "in", "name": "India"}, + {"isoCode": "iq", "name": "Irak"}, + {"isoCode": "ir", "name": "Irán"}, + {"isoCode": "is", "name": "Islandia"}, + {"isoCode": "it", "name": "Italia"}, + {"isoCode": "je", "name": "Jersey"}, + {"isoCode": "jm", "name": "Jamaica"}, + {"isoCode": "jo", "name": "Jordania"}, + {"isoCode": "jp", "name": "Japón"}, + {"isoCode": "ke", "name": "Kenia"}, + {"isoCode": "kg", "name": "Kirguistán"}, + {"isoCode": "kh", "name": "Camboya"}, + {"isoCode": "ki", "name": "Kiribati"}, + {"isoCode": "km", "name": "Comoras"}, + {"isoCode": "kn", "name": "San Cristóbal y Nieves"}, + {"isoCode": "kp", "name": "Corea del Norte"}, + {"isoCode": "kr", "name": "Corea del Sur"}, + {"isoCode": "kw", "name": "Kuwait"}, + {"isoCode": "ky", "name": "Islas Caimán"}, + {"isoCode": "kz", "name": "Kazajistán"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Líbano"}, + {"isoCode": "lc", "name": "Santa Lucía"}, + {"isoCode": "li", "name": "Liechtenstein"}, + {"isoCode": "lk", "name": "Sri Lanka"}, + {"isoCode": "lr", "name": "Liberia"}, + {"isoCode": "ls", "name": "Lesoto"}, + {"isoCode": "lt", "name": "Lituania"}, + {"isoCode": "lu", "name": "Luxemburgo"}, + {"isoCode": "lv", "name": "Letonia"}, + {"isoCode": "ly", "name": "Libia"}, + {"isoCode": "ma", "name": "Marruecos"}, + {"isoCode": "mc", "name": "Mónaco"}, + {"isoCode": "md", "name": "Moldavia"}, + {"isoCode": "me", "name": "Montenegro"}, + {"isoCode": "mf", "name": "San Martín"}, + {"isoCode": "mg", "name": "Madagascar"}, + {"isoCode": "mh", "name": "Islas Marshall"}, + {"isoCode": "mk", "name": "Macedonia del Norte"}, + {"isoCode": "ml", "name": "Malí"}, + {"isoCode": "mm", "name": "Birmania"}, + {"isoCode": "mn", "name": "Mongolia"}, + {"isoCode": "mo", "name": "Macao"}, + {"isoCode": "mp", "name": "Islas Marianas del Norte"}, + {"isoCode": "mq", "name": "Martinica"}, + {"isoCode": "mr", "name": "Mauritania"}, + {"isoCode": "ms", "name": "Montserrat"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Mauricio"}, + {"isoCode": "mv", "name": "Maldivas"}, + {"isoCode": "mw", "name": "Malaui"}, + {"isoCode": "mx", "name": "México"}, + {"isoCode": "my", "name": "Malasia"}, + {"isoCode": "mz", "name": "Mozambique"}, + {"isoCode": "na", "name": "Namibia"}, + {"isoCode": "nc", "name": "Nueva Caledonia"}, + {"isoCode": "ne", "name": "Níger"}, + {"isoCode": "nf", "name": "Isla Norfolk"}, + {"isoCode": "ng", "name": "Nigeria"}, + {"isoCode": "ni", "name": "Nicaragua"}, + {"isoCode": "nl", "name": "Países Bajos"}, + {"isoCode": "no", "name": "Noruega"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Nueva Zelanda"}, + {"isoCode": "om", "name": "Omán"}, + {"isoCode": "pa", "name": "Panamá"}, + {"isoCode": "pe", "name": "Perú"}, + {"isoCode": "pf", "name": "Polinesia Francesa"}, + {"isoCode": "pg", "name": "Papúa Nueva Guinea"}, + {"isoCode": "ph", "name": "Filipinas"}, + {"isoCode": "pk", "name": "Pakistán"}, + {"isoCode": "pl", "name": "Polonia"}, + {"isoCode": "pn", "name": "Islas Pitcairn"}, + {"isoCode": "pr", "name": "Puerto Rico"}, + {"isoCode": "ps", "name": "Palestina"}, + {"isoCode": "pt", "name": "Portugal"}, + {"isoCode": "pw", "name": "Palaos"}, + {"isoCode": "py", "name": "Paraguay"}, + {"isoCode": "qa", "name": "Catar"}, + {"isoCode": "ro", "name": "Rumania"}, + {"isoCode": "rs", "name": "Serbia"}, + {"isoCode": "ru", "name": "Rusia"}, + {"isoCode": "rw", "name": "Ruanda"}, + {"isoCode": "sa", "name": "Arabia Saudita"}, + {"isoCode": "sb", "name": "Islas Salomón"}, + {"isoCode": "sc", "name": "Seychelles"}, + {"isoCode": "sd", "name": "Sudán"}, + {"isoCode": "se", "name": "Suecia"}, + {"isoCode": "sg", "name": "Singapur"}, + {"isoCode": "sh", "name": "Santa Elena, Ascensión y Tristán de Acuña"}, + {"isoCode": "si", "name": "Eslovenia"}, + {"isoCode": "sk", "name": "Eslovaquia"}, + {"isoCode": "sl", "name": "Sierra Leona"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somalia"}, + {"isoCode": "sr", "name": "Surinam"}, + {"isoCode": "ss", "name": "Sudán del Sur"}, + {"isoCode": "st", "name": "Santo Tomé y Príncipe"}, + {"isoCode": "sv", "name": "El Salvador"}, + {"isoCode": "sy", "name": "Siria"}, + {"isoCode": "sz", "name": "Suazilandia"}, + {"isoCode": "tc", "name": "Islas Turcas y Caicos"}, + {"isoCode": "td", "name": "Chad"}, + {"isoCode": "tf", "name": "Tierras Australes y Antárticas Francesas"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Tailandia"}, + {"isoCode": "tj", "name": "Tayikistán"}, + {"isoCode": "tk", "name": "Tokelau"}, + {"isoCode": "tl", "name": "Timor Oriental"}, + {"isoCode": "tm", "name": "Turkmenistán"}, + {"isoCode": "tn", "name": "Túnez"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Turquía"}, + {"isoCode": "tt", "name": "Trinidad y Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "Taiwán (República de China)"}, + {"isoCode": "tz", "name": "Tanzania"}, + {"isoCode": "ua", "name": "Ucrania"}, + {"isoCode": "ug", "name": "Uganda"}, + {"isoCode": "us", "name": "Estados Unidos"}, + {"isoCode": "uy", "name": "Uruguay"}, + {"isoCode": "uz", "name": "Uzbekistán"}, + {"isoCode": "va", "name": "Vaticano, Ciudad del"}, + {"isoCode": "vc", "name": "San Vicente y las Granadinas"}, + {"isoCode": "ve", "name": "Venezuela"}, + {"isoCode": "vg", "name": "Islas Vírgenes Británicas"}, + {"isoCode": "vi", "name": "Islas Vírgenes de los Estados Unidos"}, + {"isoCode": "vn", "name": "Vietnam"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis y Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Yemen"}, + {"isoCode": "yt", "name": "Mayotte"}, + {"isoCode": "za", "name": "Sudáfrica"}, + {"isoCode": "zm", "name": "Zambia"}, + {"isoCode": "zw", "name": "Zimbabue"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-fr.json b/packages/ods/src/components/phone-number/src/i18n/countries-fr.json index 853feb9933..a7a7559ca7 100644 --- a/packages/ods/src/components/phone-number/src/i18n/countries-fr.json +++ b/packages/ods/src/components/phone-number/src/i18n/countries-fr.json @@ -236,5 +236,5 @@ {"isoCode": "yt", "name": "Mayotte"}, {"isoCode": "za", "name": "Afrique du Sud"}, {"isoCode": "zm", "name": "Zambie"}, - {"isoCode": "zw", "name": "Zimbabwe" -}] + {"isoCode": "zw", "name": "Zimbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-it.json b/packages/ods/src/components/phone-number/src/i18n/countries-it.json new file mode 100644 index 0000000000..febd3de913 --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-it.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andorra"}, + {"isoCode": "ae", "name": "Emirati Arabi Uniti"}, + {"isoCode": "af", "name": "Afghanistan"}, + {"isoCode": "ag", "name": "Antigua e Barbuda"}, + {"isoCode": "ai", "name": "Anguilla"}, + {"isoCode": "al", "name": "Albania"}, + {"isoCode": "am", "name": "Armenia"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antartide"}, + {"isoCode": "ar", "name": "Argentina"}, + {"isoCode": "as", "name": "Samoa Americane"}, + {"isoCode": "at", "name": "Austria"}, + {"isoCode": "au", "name": "Australia"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Isole Åland"}, + {"isoCode": "az", "name": "Azerbaigian"}, + {"isoCode": "ba", "name": "Bosnia ed Erzegovina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladesh"}, + {"isoCode": "be", "name": "Belgio"}, + {"isoCode": "bf", "name": "Burkina Faso"}, + {"isoCode": "bg", "name": "Bulgaria"}, + {"isoCode": "bh", "name": "Bahrein"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benin"}, + {"isoCode": "bl", "name": "Saint-Barthélemy"}, + {"isoCode": "bm", "name": "Bermuda"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Bolivia"}, + {"isoCode": "br", "name": "Brasile"}, + {"isoCode": "bs", "name": "Bahamas"}, + {"isoCode": "bt", "name": "Bhutan"}, + {"isoCode": "bw", "name": "Botswana"}, + {"isoCode": "by", "name": "Bielorussia"}, + {"isoCode": "bz", "name": "Belize"}, + {"isoCode": "ca", "name": "Canada"}, + {"isoCode": "cc", "name": "Isole Cocos (Keeling)"}, + {"isoCode": "cd", "name": "RD del Congo"}, + {"isoCode": "cf", "name": "Rep. Centrafricana"}, + {"isoCode": "cg", "name": "Rep. del Congo"}, + {"isoCode": "ch", "name": "Svizzera"}, + {"isoCode": "ci", "name": "Costa d'Avorio"}, + {"isoCode": "ck", "name": "Isole Cook"}, + {"isoCode": "cl", "name": "Cile"}, + {"isoCode": "cm", "name": "Camerun"}, + {"isoCode": "cn", "name": "Cina"}, + {"isoCode": "co", "name": "Colombia"}, + {"isoCode": "cr", "name": "Costa Rica"}, + {"isoCode": "cu", "name": "Cuba"}, + {"isoCode": "cv", "name": "Capo Verde"}, + {"isoCode": "cw", "name": "Curaçao"}, + {"isoCode": "cx", "name": "Isola di Natale"}, + {"isoCode": "cy", "name": "Cipro"}, + {"isoCode": "cz", "name": "Rep. Ceca"}, + {"isoCode": "de", "name": "Germania"}, + {"isoCode": "dj", "name": "Gibuti"}, + {"isoCode": "dk", "name": "Danimarca"}, + {"isoCode": "dm", "name": "Dominica"}, + {"isoCode": "do", "name": "Rep. Dominicana"}, + {"isoCode": "dz", "name": "Algeria"}, + {"isoCode": "ec", "name": "Ecuador"}, + {"isoCode": "ee", "name": "Estonia"}, + {"isoCode": "eg", "name": "Egitto"}, + {"isoCode": "eh", "name": "Sahara Occidentale"}, + {"isoCode": "er", "name": "Eritrea"}, + {"isoCode": "es", "name": "Spagna"}, + {"isoCode": "et", "name": "Etiopia"}, + {"isoCode": "fi", "name": "Finlandia"}, + {"isoCode": "fj", "name": "Figi"}, + {"isoCode": "fk", "name": "Isole Falkland"}, + {"isoCode": "fm", "name": "Micronesia"}, + {"isoCode": "fo", "name": "Fær Øer"}, + {"isoCode": "fr", "name": "Francia"}, + {"isoCode": "ga", "name": "Gabon"}, + {"isoCode": "gb", "name": "Regno Unito"}, + {"isoCode": "gd", "name": "Grenada"}, + {"isoCode": "ge", "name": "Georgia"}, + {"isoCode": "gg", "name": "Guernsey"}, + {"isoCode": "gh", "name": "Ghana"}, + {"isoCode": "gi", "name": "Gibilterra"}, + {"isoCode": "gl", "name": "Groenlandia"}, + {"isoCode": "gm", "name": "Gambia"}, + {"isoCode": "gn", "name": "Guinea"}, + {"isoCode": "gq", "name": "Guinea Equatoriale"}, + {"isoCode": "gr", "name": "Grecia"}, + {"isoCode": "gs", "name": "Georgia del Sud e Isole Sandwich Australi"}, + {"isoCode": "gt", "name": "Guatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Guinea-Bissau"}, + {"isoCode": "gy", "name": "Guyana"}, + {"isoCode": "hk", "name": "Hong Kong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Croazia"}, + {"isoCode": "ht", "name": "Haiti"}, + {"isoCode": "hu", "name": "Ungheria"}, + {"isoCode": "id", "name": "Indonesia"}, + {"isoCode": "ie", "name": "Irlanda"}, + {"isoCode": "il", "name": "Israele"}, + {"isoCode": "im", "name": "Isola di Man"}, + {"isoCode": "in", "name": "India"}, + {"isoCode": "iq", "name": "Iraq"}, + {"isoCode": "ir", "name": "Iran"}, + {"isoCode": "is", "name": "Islanda"}, + {"isoCode": "it", "name": "Italia"}, + {"isoCode": "je", "name": "Jersey"}, + {"isoCode": "jm", "name": "Giamaica"}, + {"isoCode": "jo", "name": "Giordania"}, + {"isoCode": "jp", "name": "Giappone"}, + {"isoCode": "ke", "name": "Kenya"}, + {"isoCode": "kg", "name": "Kirghizistan"}, + {"isoCode": "kh", "name": "Cambogia"}, + {"isoCode": "ki", "name": "Kiribati"}, + {"isoCode": "km", "name": "Comore"}, + {"isoCode": "kn", "name": "Saint Kitts e Nevis"}, + {"isoCode": "kp", "name": "Corea del Nord"}, + {"isoCode": "kr", "name": "Corea del Sud"}, + {"isoCode": "kw", "name": "Kuwait"}, + {"isoCode": "ky", "name": "Isole Cayman"}, + {"isoCode": "kz", "name": "Kazakistan"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Libano"}, + {"isoCode": "lc", "name": "Saint Lucia"}, + {"isoCode": "li", "name": "Liechtenstein"}, + {"isoCode": "lk", "name": "Sri Lanka"}, + {"isoCode": "lr", "name": "Liberia"}, + {"isoCode": "ls", "name": "Lesotho"}, + {"isoCode": "lt", "name": "Lituania"}, + {"isoCode": "lu", "name": "Lussemburgo"}, + {"isoCode": "lv", "name": "Lettonia"}, + {"isoCode": "ly", "name": "Libia"}, + {"isoCode": "ma", "name": "Marocco"}, + {"isoCode": "mc", "name": "Monaco"}, + {"isoCode": "md", "name": "Moldavia"}, + {"isoCode": "me", "name": "Montenegro"}, + {"isoCode": "mf", "name": "Saint-Martin"}, + {"isoCode": "mg", "name": "Madagascar"}, + {"isoCode": "mh", "name": "Isole Marshall"}, + {"isoCode": "mk", "name": "Macedonia del Nord"}, + {"isoCode": "ml", "name": "Mali"}, + {"isoCode": "mm", "name": "Birmania"}, + {"isoCode": "mn", "name": "Mongolia"}, + {"isoCode": "mo", "name": "Macao"}, + {"isoCode": "mp", "name": "Isole Marianne Settentrionali"}, + {"isoCode": "mq", "name": "Martinica"}, + {"isoCode": "mr", "name": "Mauritania"}, + {"isoCode": "ms", "name": "Montserrat"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Mauritius"}, + {"isoCode": "mv", "name": "Maldive"}, + {"isoCode": "mw", "name": "Malawi"}, + {"isoCode": "mx", "name": "Messico"}, + {"isoCode": "my", "name": "Malaysia"}, + {"isoCode": "mz", "name": "Mozambico"}, + {"isoCode": "na", "name": "Namibia"}, + {"isoCode": "nc", "name": "Nuova Caledonia"}, + {"isoCode": "ne", "name": "Niger"}, + {"isoCode": "nf", "name": "Isola Norfolk"}, + {"isoCode": "ng", "name": "Nigeria"}, + {"isoCode": "ni", "name": "Nicaragua"}, + {"isoCode": "nl", "name": "Paesi Bassi"}, + {"isoCode": "no", "name": "Norvegia"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Nuova Zelanda"}, + {"isoCode": "om", "name": "Oman"}, + {"isoCode": "pa", "name": "Panama"}, + {"isoCode": "pe", "name": "Perù"}, + {"isoCode": "pf", "name": "Polinesia francese"}, + {"isoCode": "pg", "name": "Papua Nuova Guinea"}, + {"isoCode": "ph", "name": "Filippine"}, + {"isoCode": "pk", "name": "Pakistan"}, + {"isoCode": "pl", "name": "Polonia"}, + {"isoCode": "pn", "name": "Isole Pitcairn"}, + {"isoCode": "pr", "name": "Porto Rico"}, + {"isoCode": "ps", "name": "Palestina"}, + {"isoCode": "pt", "name": "Portogallo"}, + {"isoCode": "pw", "name": "Palau"}, + {"isoCode": "py", "name": "Paraguay"}, + {"isoCode": "qa", "name": "Qatar"}, + {"isoCode": "ro", "name": "Romania"}, + {"isoCode": "rs", "name": "Serbia"}, + {"isoCode": "ru", "name": "Russia"}, + {"isoCode": "rw", "name": "Ruanda"}, + {"isoCode": "sa", "name": "Arabia Saudita"}, + {"isoCode": "sb", "name": "Isole Salomone"}, + {"isoCode": "sc", "name": "Seychelles"}, + {"isoCode": "sd", "name": "Sudan"}, + {"isoCode": "se", "name": "Svezia"}, + {"isoCode": "sg", "name": "Singapore"}, + {"isoCode": "sh", "name": "Sant'Elena,Ascensione e Tristan da Cunha"}, + {"isoCode": "si", "name": "Slovenia"}, + {"isoCode": "sk", "name": "Slovacchia"}, + {"isoCode": "sl", "name": "Sierra Leone"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somalia"}, + {"isoCode": "sr", "name": "Suriname"}, + {"isoCode": "ss", "name": "Sudan del Sud"}, + {"isoCode": "st", "name": "São Tomé e Príncipe"}, + {"isoCode": "sv", "name": "El Salvador"}, + {"isoCode": "sy", "name": "Siria"}, + {"isoCode": "sz", "name": "eSwatini"}, + {"isoCode": "tc", "name": "Turks e Caicos"}, + {"isoCode": "td", "name": "Ciad"}, + {"isoCode": "tf", "name": "Terre australi e antartiche francesi"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Thailandia"}, + {"isoCode": "tj", "name": "Tagikistan"}, + {"isoCode": "tk", "name": "Tokelau"}, + {"isoCode": "tl", "name": "Timor Est"}, + {"isoCode": "tm", "name": "Turkmenistan"}, + {"isoCode": "tn", "name": "Tunisia"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Turchia"}, + {"isoCode": "tt", "name": "Trinidad e Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "Taiwan"}, + {"isoCode": "tz", "name": "Tanzania"}, + {"isoCode": "ua", "name": "Ucraina"}, + {"isoCode": "ug", "name": "Uganda"}, + {"isoCode": "us", "name": "Stati Uniti"}, + {"isoCode": "uy", "name": "Uruguay"}, + {"isoCode": "uz", "name": "Uzbekistan"}, + {"isoCode": "va", "name": "Città del Vaticano"}, + {"isoCode": "vc", "name": "Saint Vincent e Grenadine"}, + {"isoCode": "ve", "name": "Venezuela"}, + {"isoCode": "vg", "name": "Isole Vergini Britanniche"}, + {"isoCode": "vi", "name": "Isole Vergini Americane"}, + {"isoCode": "vn", "name": "Vietnam"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis e Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Yemen"}, + {"isoCode": "yt", "name": "Mayotte"}, + {"isoCode": "za", "name": "Sudafrica"}, + {"isoCode": "zm", "name": "Zambia"}, + {"isoCode": "zw", "name": "Zimbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-nl.json b/packages/ods/src/components/phone-number/src/i18n/countries-nl.json new file mode 100644 index 0000000000..e628072497 --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-nl.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andorra"}, + {"isoCode": "ae", "name": "Verenigde Arabische Emiraten"}, + {"isoCode": "af", "name": "Afghanistan"}, + {"isoCode": "ag", "name": "Antigua en Barbuda"}, + {"isoCode": "ai", "name": "Anguilla"}, + {"isoCode": "al", "name": "Albanië"}, + {"isoCode": "am", "name": "Armenië"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antarctica"}, + {"isoCode": "ar", "name": "Argentinië"}, + {"isoCode": "as", "name": "Amerikaans-Samoa"}, + {"isoCode": "at", "name": "Oostenrijk"}, + {"isoCode": "au", "name": "Australië"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Åland"}, + {"isoCode": "az", "name": "Azerbeidzjan"}, + {"isoCode": "ba", "name": "Bosnië en Herzegovina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladesh"}, + {"isoCode": "be", "name": "België"}, + {"isoCode": "bf", "name": "Burkina Faso"}, + {"isoCode": "bg", "name": "Bulgarije"}, + {"isoCode": "bh", "name": "Bahrein"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benin"}, + {"isoCode": "bl", "name": "Saint-Barthélemy"}, + {"isoCode": "bm", "name": "Bermuda"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Bolivia"}, + {"isoCode": "br", "name": "Brazilië"}, + {"isoCode": "bs", "name": "Bahama's"}, + {"isoCode": "bt", "name": "Bhutan"}, + {"isoCode": "bw", "name": "Botswana"}, + {"isoCode": "by", "name": "Wit-Rusland"}, + {"isoCode": "bz", "name": "Belize"}, + {"isoCode": "ca", "name": "Canada"}, + {"isoCode": "cc", "name": "Cocoseilanden"}, + {"isoCode": "cd", "name": "Congo-Kinshasa"}, + {"isoCode": "cf", "name": "Centraal-Afrikaanse Republiek"}, + {"isoCode": "cg", "name": "Congo-Brazzaville"}, + {"isoCode": "ch", "name": "Zwitserland"}, + {"isoCode": "ci", "name": "Ivoorkust"}, + {"isoCode": "ck", "name": "Cookeilanden"}, + {"isoCode": "cl", "name": "Chili"}, + {"isoCode": "cm", "name": "Kameroen"}, + {"isoCode": "cn", "name": "China"}, + {"isoCode": "co", "name": "Colombia"}, + {"isoCode": "cr", "name": "Costa Rica"}, + {"isoCode": "cu", "name": "Cuba"}, + {"isoCode": "cv", "name": "Kaapverdië"}, + {"isoCode": "cw", "name": "Curaçao"}, + {"isoCode": "cx", "name": "Christmaseiland"}, + {"isoCode": "cy", "name": "Cyprus"}, + {"isoCode": "cz", "name": "Tsjechië"}, + {"isoCode": "de", "name": "Duitsland"}, + {"isoCode": "dj", "name": "Djibouti"}, + {"isoCode": "dk", "name": "Denemarken"}, + {"isoCode": "dm", "name": "Dominica"}, + {"isoCode": "do", "name": "Dominicaanse Republiek"}, + {"isoCode": "dz", "name": "Algerije"}, + {"isoCode": "ec", "name": "Ecuador"}, + {"isoCode": "ee", "name": "Estland"}, + {"isoCode": "eg", "name": "Egypte"}, + {"isoCode": "eh", "name": "Westelijke Sahara/SADR"}, + {"isoCode": "er", "name": "Eritrea"}, + {"isoCode": "es", "name": "Spanje"}, + {"isoCode": "et", "name": "Ethiopië"}, + {"isoCode": "fi", "name": "Finland"}, + {"isoCode": "fj", "name": "Fiji"}, + {"isoCode": "fk", "name": "Falklandeilanden"}, + {"isoCode": "fm", "name": "Micronesië"}, + {"isoCode": "fo", "name": "Faeröer"}, + {"isoCode": "fr", "name": "Frankrijk"}, + {"isoCode": "ga", "name": "Gabon"}, + {"isoCode": "gb", "name": "Verenigd Koninkrijk"}, + {"isoCode": "gd", "name": "Grenada"}, + {"isoCode": "ge", "name": "Georgië"}, + {"isoCode": "gg", "name": "Guernsey"}, + {"isoCode": "gh", "name": "Ghana"}, + {"isoCode": "gi", "name": "Gibraltar"}, + {"isoCode": "gl", "name": "Groenland"}, + {"isoCode": "gm", "name": "Gambia"}, + {"isoCode": "gn", "name": "Guinee"}, + {"isoCode": "gq", "name": "Equatoriaal-Guinea"}, + {"isoCode": "gr", "name": "Griekenland"}, + {"isoCode": "gs", "name": "Zuid-Georgia en de Zuidelijke Sandwicheilanden"}, + {"isoCode": "gt", "name": "Guatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Guinee-Bissau"}, + {"isoCode": "gy", "name": "Guyana"}, + {"isoCode": "hk", "name": "Hongkong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Kroatië"}, + {"isoCode": "ht", "name": "Haïti"}, + {"isoCode": "hu", "name": "Hongarije"}, + {"isoCode": "id", "name": "Indonesië"}, + {"isoCode": "ie", "name": "Ierland"}, + {"isoCode": "il", "name": "Israël"}, + {"isoCode": "im", "name": "Man"}, + {"isoCode": "in", "name": "India"}, + {"isoCode": "iq", "name": "Irak"}, + {"isoCode": "ir", "name": "Iran"}, + {"isoCode": "is", "name": "IJsland"}, + {"isoCode": "it", "name": "Italië"}, + {"isoCode": "je", "name": "Jersey"}, + {"isoCode": "jm", "name": "Jamaica"}, + {"isoCode": "jo", "name": "Jordanië"}, + {"isoCode": "jp", "name": "Japan"}, + {"isoCode": "ke", "name": "Kenia"}, + {"isoCode": "kg", "name": "Kirgizië"}, + {"isoCode": "kh", "name": "Cambodja"}, + {"isoCode": "ki", "name": "Kiribati"}, + {"isoCode": "km", "name": "Comoren"}, + {"isoCode": "kn", "name": "Saint Kitts en Nevis"}, + {"isoCode": "kp", "name": "Noord-Korea"}, + {"isoCode": "kr", "name": "Zuid-Korea"}, + {"isoCode": "kw", "name": "Koeweit"}, + {"isoCode": "ky", "name": "Kaaimaneilanden"}, + {"isoCode": "kz", "name": "Kazachstan"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Libanon"}, + {"isoCode": "lc", "name": "Saint Lucia"}, + {"isoCode": "li", "name": "Liechtenstein"}, + {"isoCode": "lk", "name": "Sri Lanka"}, + {"isoCode": "lr", "name": "Liberia"}, + {"isoCode": "ls", "name": "Lesotho"}, + {"isoCode": "lt", "name": "Litouwen"}, + {"isoCode": "lu", "name": "Luxemburg"}, + {"isoCode": "lv", "name": "Letland"}, + {"isoCode": "ly", "name": "Libië"}, + {"isoCode": "ma", "name": "Marokko"}, + {"isoCode": "mc", "name": "Monaco"}, + {"isoCode": "md", "name": "Moldavië"}, + {"isoCode": "me", "name": "Montenegro"}, + {"isoCode": "mf", "name": "Saint-Martin"}, + {"isoCode": "mg", "name": "Madagaskar"}, + {"isoCode": "mh", "name": "Marshalleilanden"}, + {"isoCode": "mk", "name": "Noord-Macedonië"}, + {"isoCode": "ml", "name": "Mali"}, + {"isoCode": "mm", "name": "Myanmar"}, + {"isoCode": "mn", "name": "Mongolië"}, + {"isoCode": "mo", "name": "Macau"}, + {"isoCode": "mp", "name": "Noordelijke Marianen"}, + {"isoCode": "mq", "name": "Martinique"}, + {"isoCode": "mr", "name": "Mauritanië"}, + {"isoCode": "ms", "name": "Montserrat"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Mauritius"}, + {"isoCode": "mv", "name": "Malediven"}, + {"isoCode": "mw", "name": "Malawi"}, + {"isoCode": "mx", "name": "Mexico"}, + {"isoCode": "my", "name": "Maleisië"}, + {"isoCode": "mz", "name": "Mozambique"}, + {"isoCode": "na", "name": "Namibië"}, + {"isoCode": "nc", "name": "Nieuw-Caledonië"}, + {"isoCode": "ne", "name": "Niger"}, + {"isoCode": "nf", "name": "Norfolk"}, + {"isoCode": "ng", "name": "Nigeria"}, + {"isoCode": "ni", "name": "Nicaragua"}, + {"isoCode": "nl", "name": "Nederland"}, + {"isoCode": "no", "name": "Noorwegen"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Nieuw-Zeeland"}, + {"isoCode": "om", "name": "Oman"}, + {"isoCode": "pa", "name": "Panama"}, + {"isoCode": "pe", "name": "Peru"}, + {"isoCode": "pf", "name": "Frans-Polynesië"}, + {"isoCode": "pg", "name": "Papoea-Nieuw-Guinea"}, + {"isoCode": "ph", "name": "Filipijnen"}, + {"isoCode": "pk", "name": "Pakistan"}, + {"isoCode": "pl", "name": "Polen"}, + {"isoCode": "pn", "name": "Pitcairneilanden"}, + {"isoCode": "pr", "name": "Puerto Rico"}, + {"isoCode": "ps", "name": "Palestina"}, + {"isoCode": "pt", "name": "Portugal"}, + {"isoCode": "pw", "name": "Palau"}, + {"isoCode": "py", "name": "Paraguay"}, + {"isoCode": "qa", "name": "Qatar"}, + {"isoCode": "ro", "name": "Roemenië"}, + {"isoCode": "rs", "name": "Servië"}, + {"isoCode": "ru", "name": "Rusland"}, + {"isoCode": "rw", "name": "Rwanda"}, + {"isoCode": "sa", "name": "Saoedi-Arabië"}, + {"isoCode": "sb", "name": "Salomonseilanden"}, + {"isoCode": "sc", "name": "Seychellen"}, + {"isoCode": "sd", "name": "Soedan"}, + {"isoCode": "se", "name": "Zweden"}, + {"isoCode": "sg", "name": "Singapore"}, + {"isoCode": "sh", "name": "Sint-Helena, Ascension en Tristan da Cunha"}, + {"isoCode": "si", "name": "Slovenië"}, + {"isoCode": "sk", "name": "Slowakije"}, + {"isoCode": "sl", "name": "Sierra Leone"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somalië"}, + {"isoCode": "sr", "name": "Suriname"}, + {"isoCode": "ss", "name": "Zuid-Soedan"}, + {"isoCode": "st", "name": "Sao Tomé en Principe"}, + {"isoCode": "sv", "name": "El Salvador"}, + {"isoCode": "sy", "name": "Syrië"}, + {"isoCode": "sz", "name": "Swaziland"}, + {"isoCode": "tc", "name": "Turks- en Caicoseilanden"}, + {"isoCode": "td", "name": "Tsjaad"}, + {"isoCode": "tf", "name": "Franse Zuidelijke Gebieden"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Thailand"}, + {"isoCode": "tj", "name": "Tadzjikistan"}, + {"isoCode": "tk", "name": "Tokelau"}, + {"isoCode": "tl", "name": "Oost-Timor"}, + {"isoCode": "tm", "name": "Turkmenistan"}, + {"isoCode": "tn", "name": "Tunesië"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Turkije"}, + {"isoCode": "tt", "name": "Trinidad en Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "Taiwan"}, + {"isoCode": "tz", "name": "Tanzania"}, + {"isoCode": "ua", "name": "Oekraïne"}, + {"isoCode": "ug", "name": "Oeganda"}, + {"isoCode": "us", "name": "Verenigde Staten"}, + {"isoCode": "uy", "name": "Uruguay"}, + {"isoCode": "uz", "name": "Oezbekistan"}, + {"isoCode": "va", "name": "Vaticaanstad"}, + {"isoCode": "vc", "name": "Saint Vincent en de Grenadines"}, + {"isoCode": "ve", "name": "Venezuela"}, + {"isoCode": "vg", "name": "Britse Maagdeneilanden"}, + {"isoCode": "vi", "name": "Amerikaanse Maagdeneilanden"}, + {"isoCode": "vn", "name": "Vietnam"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis en Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Jemen"}, + {"isoCode": "yt", "name": "Mayotte"}, + {"isoCode": "za", "name": "Zuid-Afrika"}, + {"isoCode": "zm", "name": "Zambia"}, + {"isoCode": "zw", "name": "Zimbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-pl.json b/packages/ods/src/components/phone-number/src/i18n/countries-pl.json new file mode 100644 index 0000000000..23f0036d1e --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-pl.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andora"}, + {"isoCode": "ae", "name": "Zjednoczone Emiraty Arabskie"}, + {"isoCode": "af", "name": "Afganistan"}, + {"isoCode": "ag", "name": "Antigua i Barbuda"}, + {"isoCode": "ai", "name": "Anguilla"}, + {"isoCode": "al", "name": "Albania"}, + {"isoCode": "am", "name": "Armenia"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antarktyka"}, + {"isoCode": "ar", "name": "Argentyna"}, + {"isoCode": "as", "name": "Samoa Amerykańskie"}, + {"isoCode": "at", "name": "Austria"}, + {"isoCode": "au", "name": "Australia"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Wyspy Alandzkie"}, + {"isoCode": "az", "name": "Azerbejdżan"}, + {"isoCode": "ba", "name": "Bośnia i Hercegowina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladesz"}, + {"isoCode": "be", "name": "Belgia"}, + {"isoCode": "bf", "name": "Burkina Faso"}, + {"isoCode": "bg", "name": "Bułgaria"}, + {"isoCode": "bh", "name": "Bahrajn"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benin"}, + {"isoCode": "bl", "name": "Saint-Barthélemy"}, + {"isoCode": "bm", "name": "Bermudy"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Boliwia"}, + {"isoCode": "br", "name": "Brazylia"}, + {"isoCode": "bs", "name": "Bahamy"}, + {"isoCode": "bt", "name": "Bhutan"}, + {"isoCode": "bw", "name": "Botswana"}, + {"isoCode": "by", "name": "Białoruś"}, + {"isoCode": "bz", "name": "Belize"}, + {"isoCode": "ca", "name": "Kanada"}, + {"isoCode": "cc", "name": "Wyspy Kokosowe"}, + {"isoCode": "cd", "name": "Demokratyczna Republika Konga"}, + {"isoCode": "cf", "name": "Republika Środkowoafrykańska"}, + {"isoCode": "cg", "name": "Kongo"}, + {"isoCode": "ch", "name": "Szwajcaria"}, + {"isoCode": "ci", "name": "Wybrzeże Kości Słoniowej"}, + {"isoCode": "ck", "name": "Wyspy Cooka"}, + {"isoCode": "cl", "name": "Chile"}, + {"isoCode": "cm", "name": "Kamerun"}, + {"isoCode": "cn", "name": "Chiny"}, + {"isoCode": "co", "name": "Kolumbia"}, + {"isoCode": "cr", "name": "Kostaryka"}, + {"isoCode": "cu", "name": "Kuba"}, + {"isoCode": "cv", "name": "Republika Zielonego Przylądka"}, + {"isoCode": "cw", "name": "Curaçao"}, + {"isoCode": "cx", "name": "Wyspa Bożego Narodzenia"}, + {"isoCode": "cy", "name": "Cypr"}, + {"isoCode": "cz", "name": "Czechy"}, + {"isoCode": "de", "name": "Niemcy"}, + {"isoCode": "dj", "name": "Dżibuti"}, + {"isoCode": "dk", "name": "Dania"}, + {"isoCode": "dm", "name": "Dominika"}, + {"isoCode": "do", "name": "Dominikana"}, + {"isoCode": "dz", "name": "Algieria"}, + {"isoCode": "ec", "name": "Ekwador"}, + {"isoCode": "ee", "name": "Estonia"}, + {"isoCode": "eg", "name": "Egipt"}, + {"isoCode": "eh", "name": "Sahara Zachodnia"}, + {"isoCode": "er", "name": "Erytrea"}, + {"isoCode": "es", "name": "Hiszpania"}, + {"isoCode": "et", "name": "Etiopia"}, + {"isoCode": "fi", "name": "Finlandia"}, + {"isoCode": "fj", "name": "Fidżi"}, + {"isoCode": "fk", "name": "Falklandy"}, + {"isoCode": "fm", "name": "Mikronezja"}, + {"isoCode": "fo", "name": "Wyspy Owcze"}, + {"isoCode": "fr", "name": "Francja"}, + {"isoCode": "ga", "name": "Gabon"}, + {"isoCode": "gb", "name": "Wielka Brytania"}, + {"isoCode": "gd", "name": "Grenada"}, + {"isoCode": "ge", "name": "Gruzja"}, + {"isoCode": "gg", "name": "Guernsey"}, + {"isoCode": "gh", "name": "Ghana"}, + {"isoCode": "gi", "name": "Gibraltar"}, + {"isoCode": "gl", "name": "Grenlandia"}, + {"isoCode": "gm", "name": "Gambia"}, + {"isoCode": "gn", "name": "Gwinea"}, + {"isoCode": "gq", "name": "Gwinea Równikowa"}, + {"isoCode": "gr", "name": "Grecja"}, + {"isoCode": "gs", "name": "Georgia Południowa i Sandwich Południowy"}, + {"isoCode": "gt", "name": "Gwatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Gwinea Bissau"}, + {"isoCode": "gy", "name": "Gujana"}, + {"isoCode": "hk", "name": "Hongkong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Chorwacja"}, + {"isoCode": "ht", "name": "Haiti"}, + {"isoCode": "hu", "name": "Węgry"}, + {"isoCode": "id", "name": "Indonezja"}, + {"isoCode": "ie", "name": "Irlandia"}, + {"isoCode": "il", "name": "Izrael"}, + {"isoCode": "im", "name": "Wyspa Man"}, + {"isoCode": "in", "name": "Indie"}, + {"isoCode": "iq", "name": "Irak"}, + {"isoCode": "ir", "name": "Iran"}, + {"isoCode": "is", "name": "Islandia"}, + {"isoCode": "it", "name": "Włochy"}, + {"isoCode": "je", "name": "Jersey"}, + {"isoCode": "jm", "name": "Jamajka"}, + {"isoCode": "jo", "name": "Jordania"}, + {"isoCode": "jp", "name": "Japonia"}, + {"isoCode": "ke", "name": "Kenia"}, + {"isoCode": "kg", "name": "Kirgistan"}, + {"isoCode": "kh", "name": "Kambodża"}, + {"isoCode": "ki", "name": "Kiribati"}, + {"isoCode": "km", "name": "Komory"}, + {"isoCode": "kn", "name": "Saint Kitts i Nevis"}, + {"isoCode": "kp", "name": "Korea Północna"}, + {"isoCode": "kr", "name": "Korea Południowa"}, + {"isoCode": "kw", "name": "Kuwejt"}, + {"isoCode": "ky", "name": "Kajmany"}, + {"isoCode": "kz", "name": "Kazachstan"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Liban"}, + {"isoCode": "lc", "name": "Saint Lucia"}, + {"isoCode": "li", "name": "Liechtenstein"}, + {"isoCode": "lk", "name": "Sri Lanka"}, + {"isoCode": "lr", "name": "Liberia"}, + {"isoCode": "ls", "name": "Lesotho"}, + {"isoCode": "lt", "name": "Litwa"}, + {"isoCode": "lu", "name": "Luksemburg"}, + {"isoCode": "lv", "name": "Łotwa"}, + {"isoCode": "ly", "name": "Libia"}, + {"isoCode": "ma", "name": "Maroko"}, + {"isoCode": "mc", "name": "Monako"}, + {"isoCode": "md", "name": "Mołdawia"}, + {"isoCode": "me", "name": "Czarnogóra"}, + {"isoCode": "mf", "name": "Saint-Martin"}, + {"isoCode": "mg", "name": "Madagaskar"}, + {"isoCode": "mh", "name": "Wyspy Marshalla"}, + {"isoCode": "mk", "name": "Macedonia Północna"}, + {"isoCode": "ml", "name": "Mali"}, + {"isoCode": "mm", "name": "Mjanma"}, + {"isoCode": "mn", "name": "Mongolia"}, + {"isoCode": "mo", "name": "Makau"}, + {"isoCode": "mp", "name": "Mariany Północne"}, + {"isoCode": "mq", "name": "Martynika"}, + {"isoCode": "mr", "name": "Mauretania"}, + {"isoCode": "ms", "name": "Montserrat"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Mauritius"}, + {"isoCode": "mv", "name": "Malediwy"}, + {"isoCode": "mw", "name": "Malawi"}, + {"isoCode": "mx", "name": "Meksyk"}, + {"isoCode": "my", "name": "Malezja"}, + {"isoCode": "mz", "name": "Mozambik"}, + {"isoCode": "na", "name": "Namibia"}, + {"isoCode": "nc", "name": "Nowa Kaledonia"}, + {"isoCode": "ne", "name": "Niger"}, + {"isoCode": "nf", "name": "Norfolk"}, + {"isoCode": "ng", "name": "Nigeria"}, + {"isoCode": "ni", "name": "Nikaragua"}, + {"isoCode": "nl", "name": "Holandia"}, + {"isoCode": "no", "name": "Norwegia"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Nowa Zelandia"}, + {"isoCode": "om", "name": "Oman"}, + {"isoCode": "pa", "name": "Panama"}, + {"isoCode": "pe", "name": "Peru"}, + {"isoCode": "pf", "name": "Polinezja Francuska"}, + {"isoCode": "pg", "name": "Papua-Nowa Gwinea"}, + {"isoCode": "ph", "name": "Filipiny"}, + {"isoCode": "pk", "name": "Pakistan"}, + {"isoCode": "pl", "name": "Polska"}, + {"isoCode": "pn", "name": "Pitcairn"}, + {"isoCode": "pr", "name": "Portoryko"}, + {"isoCode": "ps", "name": "Palestyna"}, + {"isoCode": "pt", "name": "Portugalia"}, + {"isoCode": "pw", "name": "Palau"}, + {"isoCode": "py", "name": "Paragwaj"}, + {"isoCode": "qa", "name": "Katar"}, + {"isoCode": "ro", "name": "Rumunia"}, + {"isoCode": "rs", "name": "Serbia"}, + {"isoCode": "ru", "name": "Rosja"}, + {"isoCode": "rw", "name": "Rwanda"}, + {"isoCode": "sa", "name": "Arabia Saudyjska"}, + {"isoCode": "sb", "name": "Wyspy Salomona"}, + {"isoCode": "sc", "name": "Seszele"}, + {"isoCode": "sd", "name": "Sudan"}, + {"isoCode": "se", "name": "Szwecja"}, + {"isoCode": "sg", "name": "Singapur"}, + {"isoCode": "sh", "name": "Wyspa Świętej Heleny, Wyspa Wniebowstąpienia i Tristan da Cunha"}, + {"isoCode": "si", "name": "Słowenia"}, + {"isoCode": "sk", "name": "Słowacja"}, + {"isoCode": "sl", "name": "Sierra Leone"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somalia"}, + {"isoCode": "sr", "name": "Surinam"}, + {"isoCode": "ss", "name": "Sudan Południowy"}, + {"isoCode": "st", "name": "Wyspy Świętego Tomasza i Książęca"}, + {"isoCode": "sv", "name": "Salwador"}, + {"isoCode": "sy", "name": "Syria"}, + {"isoCode": "sz", "name": "Eswatini"}, + {"isoCode": "tc", "name": "Turks i Caicos"}, + {"isoCode": "td", "name": "Czad"}, + {"isoCode": "tf", "name": "Francuskie Terytoria Południowe i Antarktyczne"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Tajlandia"}, + {"isoCode": "tj", "name": "Tadżykistan"}, + {"isoCode": "tk", "name": "Tokelau"}, + {"isoCode": "tl", "name": "Timor Wschodni"}, + {"isoCode": "tm", "name": "Turkmenistan"}, + {"isoCode": "tn", "name": "Tunezja"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Turcja"}, + {"isoCode": "tt", "name": "Trynidad i Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "Tajwan"}, + {"isoCode": "tz", "name": "Tanzania"}, + {"isoCode": "ua", "name": "Ukraina"}, + {"isoCode": "ug", "name": "Uganda"}, + {"isoCode": "us", "name": "Stany Zjednoczone"}, + {"isoCode": "uy", "name": "Urugwaj"}, + {"isoCode": "uz", "name": "Uzbekistan"}, + {"isoCode": "va", "name": "Watykan"}, + {"isoCode": "vc", "name": "Saint Vincent i Grenadyny"}, + {"isoCode": "ve", "name": "Wenezuela"}, + {"isoCode": "vg", "name": "Brytyjskie Wyspy Dziewicze"}, + {"isoCode": "vi", "name": "Wyspy Dziewicze Stanów Zjednoczonych"}, + {"isoCode": "vn", "name": "Wietnam"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis i Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Jemen"}, + {"isoCode": "yt", "name": "Majotta"}, + {"isoCode": "za", "name": "Południowa Afryka"}, + {"isoCode": "zm", "name": "Zambia"}, + {"isoCode": "zw", "name": "Zimbabwe"} +] diff --git a/packages/ods/src/components/phone-number/src/i18n/countries-pt.json b/packages/ods/src/components/phone-number/src/i18n/countries-pt.json new file mode 100644 index 0000000000..9fe2e6c07b --- /dev/null +++ b/packages/ods/src/components/phone-number/src/i18n/countries-pt.json @@ -0,0 +1,240 @@ +[ + {"isoCode": "ad", "name": "Andorra"}, + {"isoCode": "ae", "name": "Emirados Árabes Unidos"}, + {"isoCode": "af", "name": "Afeganistão"}, + {"isoCode": "ag", "name": "Antígua e Barbuda"}, + {"isoCode": "ai", "name": "Anguila"}, + {"isoCode": "al", "name": "Albânia"}, + {"isoCode": "am", "name": "Armênia"}, + {"isoCode": "ao", "name": "Angola"}, + {"isoCode": "aq", "name": "Antártida"}, + {"isoCode": "ar", "name": "Argentina"}, + {"isoCode": "as", "name": "Samoa Americana"}, + {"isoCode": "at", "name": "Áustria"}, + {"isoCode": "au", "name": "Austrália"}, + {"isoCode": "aw", "name": "Aruba"}, + {"isoCode": "ax", "name": "Ilhas Åland"}, + {"isoCode": "az", "name": "Azerbaijão"}, + {"isoCode": "ba", "name": "Bósnia e Herzegovina"}, + {"isoCode": "bb", "name": "Barbados"}, + {"isoCode": "bd", "name": "Bangladexe"}, + {"isoCode": "be", "name": "Bélgica"}, + {"isoCode": "bf", "name": "Burquina Fasso"}, + {"isoCode": "bg", "name": "Bulgária"}, + {"isoCode": "bh", "name": "Barém"}, + {"isoCode": "bi", "name": "Burundi"}, + {"isoCode": "bj", "name": "Benim"}, + {"isoCode": "bl", "name": "São Bartolomeu"}, + {"isoCode": "bm", "name": "Bermudas"}, + {"isoCode": "bn", "name": "Brunei"}, + {"isoCode": "bo", "name": "Bolívia"}, + {"isoCode": "br", "name": "Brasil"}, + {"isoCode": "bs", "name": "Bahamas"}, + {"isoCode": "bt", "name": "Butão"}, + {"isoCode": "bw", "name": "Botsuana"}, + {"isoCode": "by", "name": "Bielorrússia"}, + {"isoCode": "bz", "name": "Belize"}, + {"isoCode": "ca", "name": "Canadá"}, + {"isoCode": "cc", "name": "Ilhas Cocos (Keeling)"}, + {"isoCode": "cd", "name": "República Democrática do Congo"}, + {"isoCode": "cf", "name": "República Centro-Africana"}, + {"isoCode": "cg", "name": "República do Congo"}, + {"isoCode": "ch", "name": "Suíça"}, + {"isoCode": "ci", "name": "Costa do Marfim"}, + {"isoCode": "ck", "name": "Ilhas Cook"}, + {"isoCode": "cl", "name": "Chile"}, + {"isoCode": "cm", "name": "Camarões"}, + {"isoCode": "cn", "name": "China"}, + {"isoCode": "co", "name": "Colômbia"}, + {"isoCode": "cr", "name": "Costa Rica"}, + {"isoCode": "cu", "name": "Cuba"}, + {"isoCode": "cv", "name": "Cabo Verde"}, + {"isoCode": "cw", "name": "Curaçau"}, + {"isoCode": "cx", "name": "Ilha do Natal"}, + {"isoCode": "cy", "name": "Chipre"}, + {"isoCode": "cz", "name": "Chéquia"}, + {"isoCode": "de", "name": "Alemanha"}, + {"isoCode": "dj", "name": "Djibuti"}, + {"isoCode": "dk", "name": "Dinamarca"}, + {"isoCode": "dm", "name": "Dominica"}, + {"isoCode": "do", "name": "República Dominicana"}, + {"isoCode": "dz", "name": "Argélia"}, + {"isoCode": "ec", "name": "Equador"}, + {"isoCode": "ee", "name": "Estónia"}, + {"isoCode": "eg", "name": "Egito"}, + {"isoCode": "eh", "name": "Saara Ocidental"}, + {"isoCode": "er", "name": "Eritreia"}, + {"isoCode": "es", "name": "Espanha"}, + {"isoCode": "et", "name": "Etiópia"}, + {"isoCode": "fi", "name": "Finlândia"}, + {"isoCode": "fj", "name": "Fiji"}, + {"isoCode": "fk", "name": "Ilhas Malvinas"}, + {"isoCode": "fm", "name": "Estados Federados da Micronésia"}, + {"isoCode": "fo", "name": "Ilhas Feroé"}, + {"isoCode": "fr", "name": "França"}, + {"isoCode": "ga", "name": "Gabão"}, + {"isoCode": "gb", "name": "Reino Unido"}, + {"isoCode": "gd", "name": "Granada"}, + {"isoCode": "ge", "name": "Geórgia"}, + {"isoCode": "gg", "name": "Guernsey"}, + {"isoCode": "gh", "name": "Gana"}, + {"isoCode": "gi", "name": "Gibraltar"}, + {"isoCode": "gl", "name": "Gronelândia"}, + {"isoCode": "gm", "name": "Gâmbia"}, + {"isoCode": "gn", "name": "Guiné"}, + {"isoCode": "gq", "name": "Guiné Equatorial"}, + {"isoCode": "gr", "name": "Grécia"}, + {"isoCode": "gs", "name": "Ilhas Geórgia do Sul e Sandwich do Sul"}, + {"isoCode": "gt", "name": "Guatemala"}, + {"isoCode": "gu", "name": "Guam"}, + {"isoCode": "gw", "name": "Guiné-Bissau"}, + {"isoCode": "gy", "name": "Guiana"}, + {"isoCode": "hk", "name": "Hong Kong"}, + {"isoCode": "hn", "name": "Honduras"}, + {"isoCode": "hr", "name": "Croácia"}, + {"isoCode": "ht", "name": "Haiti"}, + {"isoCode": "hu", "name": "Hungria"}, + {"isoCode": "id", "name": "Indonésia"}, + {"isoCode": "ie", "name": "Irlanda"}, + {"isoCode": "il", "name": "Israel"}, + {"isoCode": "im", "name": "Ilha de Man"}, + {"isoCode": "in", "name": "Índia"}, + {"isoCode": "iq", "name": "Iraque"}, + {"isoCode": "ir", "name": "Irã"}, + {"isoCode": "is", "name": "Islândia"}, + {"isoCode": "it", "name": "Itália"}, + {"isoCode": "je", "name": "Jersey"}, + {"isoCode": "jm", "name": "Jamaica"}, + {"isoCode": "jo", "name": "Jordânia"}, + {"isoCode": "jp", "name": "Japão"}, + {"isoCode": "ke", "name": "Quênia"}, + {"isoCode": "kg", "name": "Quirguistão"}, + {"isoCode": "kh", "name": "Camboja"}, + {"isoCode": "ki", "name": "Quiribáti"}, + {"isoCode": "km", "name": "Comores"}, + {"isoCode": "kn", "name": "São Cristóvão e Neves"}, + {"isoCode": "kp", "name": "Coreia do Norte"}, + {"isoCode": "kr", "name": "Coreia do Sul"}, + {"isoCode": "kw", "name": "Kuwait"}, + {"isoCode": "ky", "name": "Ilhas Caimã"}, + {"isoCode": "kz", "name": "Cazaquistão"}, + {"isoCode": "la", "name": "Laos"}, + {"isoCode": "lb", "name": "Líbano"}, + {"isoCode": "lc", "name": "Santa Lúcia"}, + {"isoCode": "li", "name": "Listenstaine"}, + {"isoCode": "lk", "name": "Seri Lanca"}, + {"isoCode": "lr", "name": "Libéria"}, + {"isoCode": "ls", "name": "Lesoto"}, + {"isoCode": "lt", "name": "Lituânia"}, + {"isoCode": "lu", "name": "Luxemburgo"}, + {"isoCode": "lv", "name": "Letônia"}, + {"isoCode": "ly", "name": "Líbia"}, + {"isoCode": "ma", "name": "Marrocos"}, + {"isoCode": "mc", "name": "Mónaco"}, + {"isoCode": "md", "name": "Moldávia"}, + {"isoCode": "me", "name": "Montenegro"}, + {"isoCode": "mf", "name": "São Martinho"}, + {"isoCode": "mg", "name": "Madagáscar"}, + {"isoCode": "mh", "name": "Ilhas Marshall"}, + {"isoCode": "mk", "name": "Macedônia do Norte"}, + {"isoCode": "ml", "name": "Mali"}, + {"isoCode": "mm", "name": "Mianmar"}, + {"isoCode": "mn", "name": "Mongólia"}, + {"isoCode": "mo", "name": "Macau"}, + {"isoCode": "mp", "name": "Marianas Setentrionais"}, + {"isoCode": "mq", "name": "Martinica"}, + {"isoCode": "mr", "name": "Mauritânia"}, + {"isoCode": "ms", "name": "Monserrate"}, + {"isoCode": "mt", "name": "Malta"}, + {"isoCode": "mu", "name": "Ilhas Maurícias"}, + {"isoCode": "mv", "name": "Maldivas"}, + {"isoCode": "mw", "name": "Maláui"}, + {"isoCode": "mx", "name": "México"}, + {"isoCode": "my", "name": "Malásia"}, + {"isoCode": "mz", "name": "Moçambique"}, + {"isoCode": "na", "name": "Namíbia"}, + {"isoCode": "nc", "name": "Nova Caledônia"}, + {"isoCode": "ne", "name": "Níger"}, + {"isoCode": "nf", "name": "Ilha Norfolk"}, + {"isoCode": "ng", "name": "Nigéria"}, + {"isoCode": "ni", "name": "Nicarágua"}, + {"isoCode": "nl", "name": "Países Baixos"}, + {"isoCode": "no", "name": "Noruega"}, + {"isoCode": "np", "name": "Nepal"}, + {"isoCode": "nr", "name": "Nauru"}, + {"isoCode": "nu", "name": "Niue"}, + {"isoCode": "nz", "name": "Nova Zelândia"}, + {"isoCode": "om", "name": "Omã"}, + {"isoCode": "pa", "name": "Panamá"}, + {"isoCode": "pe", "name": "Peru"}, + {"isoCode": "pf", "name": "Polinésia Francesa"}, + {"isoCode": "pg", "name": "Papua-Nova Guiné"}, + {"isoCode": "ph", "name": "Filipinas"}, + {"isoCode": "pk", "name": "Paquistão"}, + {"isoCode": "pl", "name": "Polónia"}, + {"isoCode": "pn", "name": "Pitcairn"}, + {"isoCode": "pr", "name": "Porto Rico"}, + {"isoCode": "ps", "name": "Palestina"}, + {"isoCode": "pt", "name": "Portugal"}, + {"isoCode": "pw", "name": "Palau"}, + {"isoCode": "py", "name": "Paraguai"}, + {"isoCode": "qa", "name": "Catar"}, + {"isoCode": "ro", "name": "Roménia"}, + {"isoCode": "rs", "name": "Sérvia"}, + {"isoCode": "ru", "name": "Rússia"}, + {"isoCode": "rw", "name": "Ruanda"}, + {"isoCode": "sa", "name": "Arábia Saudita"}, + {"isoCode": "sb", "name": "Ilhas Salomão"}, + {"isoCode": "sc", "name": "Seicheles"}, + {"isoCode": "sd", "name": "Sudão"}, + {"isoCode": "se", "name": "Suécia"}, + {"isoCode": "sg", "name": "Singapura"}, + {"isoCode": "sh", "name": "Santa Helena, Ascensão e Tristão da Cunha"}, + {"isoCode": "si", "name": "Eslovênia"}, + {"isoCode": "sk", "name": "Eslováquia"}, + {"isoCode": "sl", "name": "Serra Leoa"}, + {"isoCode": "sm", "name": "San Marino"}, + {"isoCode": "sn", "name": "Senegal"}, + {"isoCode": "so", "name": "Somália"}, + {"isoCode": "sr", "name": "Suriname"}, + {"isoCode": "ss", "name": "Sudão do Sul"}, + {"isoCode": "st", "name": "São Tomé e Príncipe"}, + {"isoCode": "sv", "name": "El Salvador"}, + {"isoCode": "sy", "name": "Síria"}, + {"isoCode": "sz", "name": "Essuatíni"}, + {"isoCode": "tc", "name": "Turcas e Caicos"}, + {"isoCode": "td", "name": "Chade"}, + {"isoCode": "tf", "name": "Terras Austrais e Antárticas Francesas"}, + {"isoCode": "tg", "name": "Togo"}, + {"isoCode": "th", "name": "Tailândia"}, + {"isoCode": "tj", "name": "Tajiquistão"}, + {"isoCode": "tk", "name": "Toquelau"}, + {"isoCode": "tl", "name": "Timor-Leste"}, + {"isoCode": "tm", "name": "Turcomenistão"}, + {"isoCode": "tn", "name": "Tunísia"}, + {"isoCode": "to", "name": "Tonga"}, + {"isoCode": "tr", "name": "Turquia"}, + {"isoCode": "tt", "name": "Trinidad e Tobago"}, + {"isoCode": "tv", "name": "Tuvalu"}, + {"isoCode": "tw", "name": "Taiwan"}, + {"isoCode": "tz", "name": "Tanzânia"}, + {"isoCode": "ua", "name": "Ucrânia"}, + {"isoCode": "ug", "name": "Uganda"}, + {"isoCode": "us", "name": "Estados Unidos"}, + {"isoCode": "uy", "name": "Uruguai"}, + {"isoCode": "uz", "name": "Uzbequistão"}, + {"isoCode": "va", "name": "Vaticano"}, + {"isoCode": "vc", "name": "São Vicente e Granadinas"}, + {"isoCode": "ve", "name": "Venezuela"}, + {"isoCode": "vg", "name": "Ilhas Virgens Britânicas"}, + {"isoCode": "vi", "name": "Ilhas Virgens Americanas"}, + {"isoCode": "vn", "name": "Vietname"}, + {"isoCode": "vu", "name": "Vanuatu"}, + {"isoCode": "wf", "name": "Wallis e Futuna"}, + {"isoCode": "ws", "name": "Samoa"}, + {"isoCode": "ye", "name": "Iêmen"}, + {"isoCode": "yt", "name": "Maiote"}, + {"isoCode": "za", "name": "África do Sul"}, + {"isoCode": "zm", "name": "Zâmbia"}, + {"isoCode": "zw", "name": "Zimbábue"} +] diff --git a/packages/ods/src/components/phone-number/tests/controller/ods-phone-number.spec.ts b/packages/ods/src/components/phone-number/tests/controller/ods-phone-number.spec.ts index 6ca75f28af..736b1b5ff8 100644 --- a/packages/ods/src/components/phone-number/tests/controller/ods-phone-number.spec.ts +++ b/packages/ods/src/components/phone-number/tests/controller/ods-phone-number.spec.ts @@ -100,7 +100,7 @@ describe('ods-phone-number controller', () => { it('should return the default locale if no match from navigator language', () => { // @ts-ignore for test purpose - global.navigator = { language: 'de-AT' }; + global.navigator = { language: 'zh-gan' }; // @ts-ignore for test purpose expect(getCurrentLocale('zw')).toBe('fr'); diff --git a/yarn.lock b/yarn.lock index 601ec09bcf..9dd100d554 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4881,6 +4881,7 @@ __metadata: "@types/vanillajs-datepicker": 1.3.5 autoprefixer: 10.4.17 concurrently: 8.2.2 + glob: 11.0.0 google-libphonenumber: 3.2.35 jest: 29.7.0 jest-environment-jsdom: 29.7.0 @@ -12767,6 +12768,22 @@ __metadata: languageName: node linkType: hard +"glob@npm:11.0.0": + version: 11.0.0 + resolution: "glob@npm:11.0.0" + dependencies: + foreground-child: ^3.1.0 + jackspeak: ^4.0.1 + minimatch: ^10.0.0 + minipass: ^7.1.2 + package-json-from-dist: ^1.0.0 + path-scurry: ^2.0.0 + bin: + glob: dist/esm/bin.mjs + checksum: 8a2dd914d5776987be5244624d9491bbcaf19f2387e06783737003ff696ebfd2264190c47014f8709c1c02d8bc892f17660cf986c587b107e194c0a3151ab333 + languageName: node + linkType: hard + "glob@npm:^10.0.0, glob@npm:^10.2.2, glob@npm:^10.3.10, glob@npm:^10.3.7": version: 10.3.10 resolution: "glob@npm:10.3.10" @@ -14709,6 +14726,19 @@ __metadata: languageName: node linkType: hard +"jackspeak@npm:^4.0.1": + version: 4.0.1 + resolution: "jackspeak@npm:4.0.1" + dependencies: + "@isaacs/cliui": ^8.0.2 + "@pkgjs/parseargs": ^0.11.0 + dependenciesMeta: + "@pkgjs/parseargs": + optional: true + checksum: 7989d19eddeff0631ef653df413e26290db77dc3791438bd12b56bed1c0b24d5d535fdfec13cf35775cd5b47f8ee57d36fd0bceaf2df672b1f523533fd4184cc + languageName: node + linkType: hard + "jake@npm:^10.8.5": version: 10.8.7 resolution: "jake@npm:10.8.7" @@ -16071,6 +16101,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^11.0.0": + version: 11.0.0 + resolution: "lru-cache@npm:11.0.0" + checksum: c29385f9369b1a566e1db9eda9a4b12f6507de906e5720ca12844dd775b7139c42b8e5837e7d5162bcc292ce4d3eecfa74ec2856c6afcc0caa2e3c9ea3a17f27 + languageName: node + linkType: hard + "lru-cache@npm:^5.1.1": version: 5.1.1 resolution: "lru-cache@npm:5.1.1" @@ -16537,6 +16574,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^10.0.0": + version: 10.0.1 + resolution: "minimatch@npm:10.0.1" + dependencies: + brace-expansion: ^2.0.1 + checksum: f5b63c2f30606091a057c5f679b067f84a2cd0ffbd2dbc9143bda850afd353c7be81949ff11ae0c86988f07390eeca64efd7143ee05a0dab37f6c6b38a2ebb6c + languageName: node + linkType: hard + "minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -16667,6 +16713,13 @@ __metadata: languageName: node linkType: hard +"minipass@npm:^7.1.2": + version: 7.1.2 + resolution: "minipass@npm:7.1.2" + checksum: 2bfd325b95c555f2b4d2814d49325691c7bee937d753814861b0b49d5edcda55cbbf22b6b6a60bb91eddac8668771f03c5ff647dcd9d0f798e9548b9cdc46ee3 + languageName: node + linkType: hard + "minizlib@npm:^1.3.3": version: 1.3.3 resolution: "minizlib@npm:1.3.3" @@ -17877,6 +17930,13 @@ __metadata: languageName: node linkType: hard +"package-json-from-dist@npm:^1.0.0": + version: 1.0.0 + resolution: "package-json-from-dist@npm:1.0.0" + checksum: ac706ec856a5a03f5261e4e48fa974f24feb044d51f84f8332e2af0af04fbdbdd5bbbfb9cbbe354190409bc8307c83a9e38c6672c3c8855f709afb0006a009ea + languageName: node + linkType: hard + "pako@npm:~0.2.0": version: 0.2.9 resolution: "pako@npm:0.2.9" @@ -18135,6 +18195,16 @@ __metadata: languageName: node linkType: hard +"path-scurry@npm:^2.0.0": + version: 2.0.0 + resolution: "path-scurry@npm:2.0.0" + dependencies: + lru-cache: ^11.0.0 + minipass: ^7.1.2 + checksum: 9953ce3857f7e0796b187a7066eede63864b7e1dfc14bf0484249801a5ab9afb90d9a58fc533ebb1b552d23767df8aa6a2c6c62caf3f8a65f6ce336a97bbb484 + languageName: node + linkType: hard + "path-to-regexp@npm:0.1.7": version: 0.1.7 resolution: "path-to-regexp@npm:0.1.7"