From 28cc9b1a7121d03e1e6d767b7e11fafeb671896f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CSalar?= <“salar.sali97@gmail.com”> Date: Fri, 21 Oct 2022 13:46:47 +0300 Subject: [PATCH] the translation in the main section has been resolved --- src/components/MainPage/sections/MainSection.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/MainPage/sections/MainSection.tsx b/src/components/MainPage/sections/MainSection.tsx index 60caa7b..bd156cc 100755 --- a/src/components/MainPage/sections/MainSection.tsx +++ b/src/components/MainPage/sections/MainSection.tsx @@ -2,16 +2,14 @@ /* Imports */ /* -------------------------------------------------------------------------- */ import React from "react"; -import {t as nextT} from "i18next"; +import { t as nextT } from "i18next"; import { useTranslation } from "react-i18next"; import { SearchBar } from "../../search/SearchBar"; import { formatNumber } from "core/helpers"; export default function MainSection() { const { t, i18n } = useTranslation(); - const amountArticles = 4202020 - - + const amountArticles = 4202020; return (
@@ -21,8 +19,14 @@ export default function MainSection() {
{t("mainPage.search")}
-
{formatNumber(amountArticles)}
-
{nextT("mainPage.article", {count: amountArticles}).toString()}
+
+ {formatNumber(amountArticles)} +
+
+ {nextT("mainPage.article_many", { + count: amountArticles, + }).toString()} +