Files
itflow/libs/intl-tel-input/js/locale/sr.ts
2026-08-26 13:14:32 -04:00

36 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//* Serbian. Translated by: ChatGPT 5.
import type { UiTranslations } from "./types.js";
const interfaceTranslations: UiTranslations = {
selectedCountryAriaLabel:
"Промени земљу за телефонски број, изабрано ${countryName} (${dialCode})",
noCountrySelected: "Изабери земљу за телефонски број",
countryListAriaLabel: "Листа земаља",
searchPlaceholder: "Претрага",
clearSearchAriaLabel: "Обриши претрагу",
searchEmptyState: "Нема резултата",
searchSummaryAria(count) {
if (count === 0) {
return "Нема резултата";
}
const mod10 = count % 10;
const mod100 = count % 100;
// Numbers ending in 1, but not 11
if (mod10 === 1 && mod100 !== 11) {
return `Пронађен ${count} резултат`;
}
// Numbers ending in 2-4, but not 12-14
const isFew = mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14);
if (isFew) {
return `Пронађена ${count} резултата`;
}
return `Пронађено ${count} резултата`;
},
};
export default interfaceTranslations;