diff --git a/src/i18n/locales/hu-HU.ts b/src/i18n/locales/hu-HU.ts index 40284be..5fe25fd 100644 --- a/src/i18n/locales/hu-HU.ts +++ b/src/i18n/locales/hu-HU.ts @@ -2,8 +2,7 @@ export default { pages: { folderContent: { folder: "Mappa", - itemsUnderFolder: ({ count }: { count: number }) => - `Ebben a mappában ${count} elem található.`, + itemsUnderFolder: ({ count }: { count: number }) => `Ebben a mappában ${count} elem található.`, }, }, components: {}, diff --git a/src/i18n/locales/ru-RU.ts b/src/i18n/locales/ru-RU.ts index ca42358..a79757a 100644 --- a/src/i18n/locales/ru-RU.ts +++ b/src/i18n/locales/ru-RU.ts @@ -10,11 +10,11 @@ export default { }; function getForm(number: number, form1: string, form2: string, form5: string): string { - const remainder100 = number % 100; - const remainder10 = remainder100 % 10; + const remainder100 = number % 100 + const remainder10 = remainder100 % 10 - if (remainder100 >= 10 && remainder100 <= 20) return form5; - if (remainder10 > 1 && remainder10 < 5) return form2; - if (remainder10 == 1) return form1; - return form5; + if (remainder100 >= 10 && remainder100 <= 20) return form5 + if (remainder10 > 1 && remainder10 < 5) return form2 + if (remainder10 == 1) return form1 + return form5 }