Репозитоий переименован во frontend, обновлены зависимости, добавлен eslint-config

This commit is contained in:
valentinsilyutin committed 2025-12-26 11:39:12 +04:00
1 parent 9ac5f6bd28
commit 53dc2d3092
35 files changed
+4464 -2715

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
export const pluralize = (count, words) => {
count = Math.abs(count) % 100;
const count10 = count % 10;
if (count > 10 && count < 20) {
const normalizedCount = Math.abs(count) % 100;
const count10 = normalizedCount % 10;
if (normalizedCount > 10 && normalizedCount < 20) {
return words[2];
}
if (count10 > 1 && count10 < 5) {