diff --git a/.changeset/wild-clocks-call.md b/.changeset/wild-clocks-call.md new file mode 100644 index 000000000..cba916b69 --- /dev/null +++ b/.changeset/wild-clocks-call.md @@ -0,0 +1,5 @@ +--- +'@lion/ui': patch +--- + +[input-tel-dropdown] add translations for "All countries" and "Suggested countries" labels. diff --git a/packages/ui/components/input-tel-dropdown/src/LionInputTelDropdown.js b/packages/ui/components/input-tel-dropdown/src/LionInputTelDropdown.js index 877cdcc82..a525b03d6 100644 --- a/packages/ui/components/input-tel-dropdown/src/LionInputTelDropdown.js +++ b/packages/ui/components/input-tel-dropdown/src/LionInputTelDropdown.js @@ -92,9 +92,9 @@ export class LionInputTelDropdown extends LionInputTel { }, labels: { selectCountry: localize.msg('lion-input-tel:selectCountry'), - // TODO: add translations - allCountries: this._allCountriesLabel || 'All countries', - preferredCountries: this._preferredCountriesLabel || 'Suggested countries', + allCountries: this._allCountriesLabel || localize.msg('lion-input-tel:allCountries'), + preferredCountries: + this._preferredCountriesLabel || localize.msg('lion-input-tel:suggestedCountries'), }, }, }; @@ -125,10 +125,10 @@ export class LionInputTelDropdown extends LionInputTel { > ${data?.regionMetaListPreferred?.length ? html` - + ${data.regionMetaListPreferred.map(renderOption)} - + ${data?.regionMetaList?.map(renderOption)} ` diff --git a/packages/ui/components/input-tel/translations/bg.js b/packages/ui/components/input-tel/translations/bg.js index e20fb986d..6ccb8f12f 100644 --- a/packages/ui/components/input-tel/translations/bg.js +++ b/packages/ui/components/input-tel/translations/bg.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Избор на държава', + allCountries: 'Всички държави', phoneNumber: 'Телефонен номер', + selectCountry: 'Избор на държава', + suggestedCountries: 'Предложени държави', }; diff --git a/packages/ui/components/input-tel/translations/cs.js b/packages/ui/components/input-tel/translations/cs.js index 0dd327c6e..39ebed335 100644 --- a/packages/ui/components/input-tel/translations/cs.js +++ b/packages/ui/components/input-tel/translations/cs.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Vybrat zemi', + allCountries: 'Všechny země', phoneNumber: 'Telefonní číslo', + selectCountry: 'Vybrat zemi', + suggestedCountries: 'Navrhované země', }; diff --git a/packages/ui/components/input-tel/translations/de.js b/packages/ui/components/input-tel/translations/de.js index 76278eea5..387570c0b 100644 --- a/packages/ui/components/input-tel/translations/de.js +++ b/packages/ui/components/input-tel/translations/de.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Land auswählen', + allCountries: 'Alle Länder', phoneNumber: 'Telefonnummer', + selectCountry: 'Land auswählen', + suggestedCountries: 'Vorgeschlagene Länder', }; diff --git a/packages/ui/components/input-tel/translations/en.js b/packages/ui/components/input-tel/translations/en.js index 425dd3390..c3842cc4d 100644 --- a/packages/ui/components/input-tel/translations/en.js +++ b/packages/ui/components/input-tel/translations/en.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Select country', + allCountries: 'All countries', phoneNumber: 'Phone number', + selectCountry: 'Select country', + suggestedCountries: 'Suggested countries', }; diff --git a/packages/ui/components/input-tel/translations/es.js b/packages/ui/components/input-tel/translations/es.js index 7c3122310..fb8021c8d 100644 --- a/packages/ui/components/input-tel/translations/es.js +++ b/packages/ui/components/input-tel/translations/es.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Seleccione país', + allCountries: 'Pays suggérés', phoneNumber: 'Número de teléfono', + selectCountry: 'Seleccione país', + suggestedCountries: 'Países sugeridos', }; diff --git a/packages/ui/components/input-tel/translations/fr.js b/packages/ui/components/input-tel/translations/fr.js index 1ce32e428..99a719afb 100644 --- a/packages/ui/components/input-tel/translations/fr.js +++ b/packages/ui/components/input-tel/translations/fr.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Sélectionnez un pays', + allCountries: 'Tous les pays', phoneNumber: 'Numéro de téléphone', + selectCountry: 'Sélectionnez un pays', + suggestedCountries: 'Pays suggérés', }; diff --git a/packages/ui/components/input-tel/translations/hu.js b/packages/ui/components/input-tel/translations/hu.js index 2d380d273..bf382015f 100644 --- a/packages/ui/components/input-tel/translations/hu.js +++ b/packages/ui/components/input-tel/translations/hu.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Ország kiválasztása', + allCountries: 'Minden ország', phoneNumber: 'Telefonszám', + selectCountry: 'Ország kiválasztása', + suggestedCountries: 'Javasolt országok', }; diff --git a/packages/ui/components/input-tel/translations/it.js b/packages/ui/components/input-tel/translations/it.js index 6ad426bb4..baef356f7 100644 --- a/packages/ui/components/input-tel/translations/it.js +++ b/packages/ui/components/input-tel/translations/it.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Selezionare il paese', + allCountries: 'Tutti i paesi', phoneNumber: 'Numero di telefono', + selectCountry: 'Selezionare il paese', + suggestedCountries: 'Paesi consigliati', }; diff --git a/packages/ui/components/input-tel/translations/nl.js b/packages/ui/components/input-tel/translations/nl.js index 1f096445b..bc3e73dad 100644 --- a/packages/ui/components/input-tel/translations/nl.js +++ b/packages/ui/components/input-tel/translations/nl.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Selecteer land', + allCountries: 'Alle landen', phoneNumber: 'Telefoonnummer', + selectCountry: 'Selecteer land', + suggestedCountries: 'Voor gestelde landen', }; diff --git a/packages/ui/components/input-tel/translations/pl.js b/packages/ui/components/input-tel/translations/pl.js index ba2dc5a97..f6d57be6b 100644 --- a/packages/ui/components/input-tel/translations/pl.js +++ b/packages/ui/components/input-tel/translations/pl.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Wybierz kraj', + allCountries: 'Wszystkie kraje', phoneNumber: 'Numer telefonu', + selectCountry: 'Wybierz kraj', + suggestedCountries: 'Sugerowane kraje', }; diff --git a/packages/ui/components/input-tel/translations/ro.js b/packages/ui/components/input-tel/translations/ro.js index a1d485c7b..c5fffad3a 100644 --- a/packages/ui/components/input-tel/translations/ro.js +++ b/packages/ui/components/input-tel/translations/ro.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Selectare țară', + allCountries: 'Toate țările', phoneNumber: 'Număr de telefon', + selectCountry: 'Selectare țară', + suggestedCountries: 'Țări sugerate', }; diff --git a/packages/ui/components/input-tel/translations/ru.js b/packages/ui/components/input-tel/translations/ru.js index 4a922f844..c1c3ba391 100644 --- a/packages/ui/components/input-tel/translations/ru.js +++ b/packages/ui/components/input-tel/translations/ru.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Выбрать страну', + allCountries: 'Все страны', phoneNumber: 'Номер телефона', + selectCountry: 'Выбрать страну', + suggestedCountries: 'Предлагаемые страны', }; diff --git a/packages/ui/components/input-tel/translations/sk.js b/packages/ui/components/input-tel/translations/sk.js index 51587dc57..5ae625283 100644 --- a/packages/ui/components/input-tel/translations/sk.js +++ b/packages/ui/components/input-tel/translations/sk.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Zvoliť krajinu', + allCountries: 'Všetky krajiny', phoneNumber: 'Telefónne číslo', + selectCountry: 'Zvoliť krajinu', + suggestedCountries: 'Odporúčané krajiny', }; diff --git a/packages/ui/components/input-tel/translations/uk.js b/packages/ui/components/input-tel/translations/uk.js index 1218d2e94..c7e74dac3 100644 --- a/packages/ui/components/input-tel/translations/uk.js +++ b/packages/ui/components/input-tel/translations/uk.js @@ -1,4 +1,6 @@ export default { - selectCountry: 'Вибрати країну', + allCountries: 'Усі країни', phoneNumber: 'Номер телефону', + selectCountry: 'Вибрати країну', + suggestedCountries: 'Запропоновані країни', }; diff --git a/packages/ui/components/input-tel/translations/zh.js b/packages/ui/components/input-tel/translations/zh.js index db68955ab..cbd37f2f2 100644 --- a/packages/ui/components/input-tel/translations/zh.js +++ b/packages/ui/components/input-tel/translations/zh.js @@ -1,4 +1,6 @@ export default { - selectCountry: '选择国家/地区', + allCountries: '所有国家/地区', phoneNumber: '电话号码', + selectCountry: '选择国家/地区', + suggestedCountries: '建议的国家/地区', };