mirror of
https://github.com/itflow-org/itflow
synced 2026-09-18 04:35:12 +00:00
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
//* Polish. Translated by: Mateusz Bronis (bronisMateusz) https://github.com/bronisMateusz.
|
|
import type { UiTranslations } from "./types.js";
|
|
|
|
const interfaceTranslations: UiTranslations = {
|
|
selectedCountryAriaLabel:
|
|
"Zmień kraj dla numeru telefonu, wybrano ${countryName} (${dialCode})",
|
|
noCountrySelected: "Wybierz kraj dla numeru telefonu",
|
|
countryListAriaLabel: "Lista krajów",
|
|
searchPlaceholder: "Szukaj",
|
|
clearSearchAriaLabel: "Wyczyść wyszukiwanie",
|
|
searchEmptyState: "Nie znaleziono wyników",
|
|
|
|
searchSummaryAria(count) {
|
|
if (count === 0) {
|
|
return "Nie znaleziono wyników";
|
|
}
|
|
if (count === 1) {
|
|
return "Znaleziono 1 wynik";
|
|
}
|
|
|
|
// Numbers ending with 2, 3, 4 (except those ending with 12, 13, 14) use "wyniki". All others use "wyników".
|
|
const isFew =
|
|
count % 10 >= 2 &&
|
|
count % 10 <= 4 &&
|
|
!(count % 100 >= 12 && count % 100 <= 14);
|
|
|
|
if (isFew) {
|
|
return `Znaleziono ${count} wyniki`;
|
|
}
|
|
return `Znaleziono ${count} wyników`;
|
|
},
|
|
};
|
|
|
|
export default interfaceTranslations;
|