@@ -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()}
+
From 753223c7a93a7eb76145775abe6d2a02998004f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CSalar?= <“salar.sali97@gmail.com”>
Date: Fri, 21 Oct 2022 14:07:48 +0300
Subject: [PATCH 6/7] the translation of interaction buttons has been added
---
public/locales/en/translation.json | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index f134e92..0e74b24 100755
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -62,7 +62,16 @@
},
"articlePage": {
"abstract": "Abstract",
- "keywords": "Keywords"
+ "keywords": "Keywords",
+ "interactionButtons":{
+ "abstract": "Abstract",
+ "readFile": "Read File",
+ "download" : "Download",
+ "share" : "Share",
+ "cite" : "Cite",
+ "copied": "Copied"
+ }
+
},
"navbar": {
"createNew": "Create New",
From 4f9b33e5b9404e72b66c34de588b3db83f4fe8fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CSalar?= <“salar.sali97@gmail.com”>
Date: Fri, 21 Oct 2022 14:21:26 +0300
Subject: [PATCH 7/7] resolve article translation
---
src/components/Cards/CategoryCard.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/Cards/CategoryCard.tsx b/src/components/Cards/CategoryCard.tsx
index 172e9e9..2d6a42d 100755
--- a/src/components/Cards/CategoryCard.tsx
+++ b/src/components/Cards/CategoryCard.tsx
@@ -13,7 +13,7 @@ type Props = {
} & Omit, "">;
function CategoryCard({ count, title, iconChild, className, ...props }: Props) {
- const [t, i18next] = useTranslation()
+ const [t, i18next] = useTranslation();
const iconChildStyle =
"h-7 fill-gray-500 stroke-gray-500 group-focus:fill-blue-600 group-active:fill-blue-600 group-focus:stroke-blue-600 group-active:stroke-blue-600";
@@ -43,7 +43,8 @@ function CategoryCard({ count, title, iconChild, className, ...props }: Props) {
fontWeightVariant="normal"
className="text-xs text-gray-500 group-active:text-blue-600 group-focus:text-blue-600"
>
- {count} {t("mainPage.article", {count: count}).toString()}
+ {count}{" "}
+ {t("mainPage.article_many", { count: count }).toString()}