UNPKG

intl-tel-input

Version:

A JavaScript library for entering, formatting, and validating international telephone numbers

26 lines (25 loc) 940 B
"use strict"; const interfaceTranslations = { selectedCountryAriaLabel: "Промени земљу, изабрано ${countryName} (${dialCode})", noCountrySelected: "Изабери земљу", countryListAriaLabel: "Листа земаља", searchPlaceholder: "Претрага", clearSearchAriaLabel: "Обриши претрагу", searchEmptyState: "Нема резултата", searchSummaryAria(count) { if (count === 0) { return "Нема резултата"; } const mod10 = count % 10; const mod100 = count % 100; if (mod10 === 1 && mod100 !== 11) { return `Пронађен ${count} резултат`; } const isFew = mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14); if (isFew) { return `Пронађена ${count} резултата`; } return `Пронађено ${count} резултата`; } }; export default interfaceTranslations;