From 7df9ef8d478dcb3bdf7b03379949d994b35a8693 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Wed, 13 May 2020 23:30:12 +0300 Subject: [PATCH] new translations --- public/locales/en/translations.json | 9 ++++++++- public/locales/ro/translations.json | 9 ++++++++- src/features/session/components/SessionSummary.js | 12 ++++++------ 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index a3723e7..5ad41ec 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -17,5 +17,12 @@ "Sessions": "Sessions", "About": "About" }, - "Session": "Session" + "Session": { + "Session": "Session", + "Active": "Active", + "StartDate": "Start date", + "StopDate": "Stop date", + "RunningTime": "Running time", + "Host": "Host" + } } diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json index 4d18bed..11a79d5 100644 --- a/public/locales/ro/translations.json +++ b/public/locales/ro/translations.json @@ -8,5 +8,12 @@ "Sessions": "Sesiuni", "About": "Despre" }, - "Session": "Sesiune" + "Session": { + "Session": "Sesiune", + "Active": "Activă", + "StartDate": "Dată pornire", + "StopDate": "Dată oprire", + "RunningTime": "Timp de rulare", + "Host": "Gazdă" + } } diff --git a/src/features/session/components/SessionSummary.js b/src/features/session/components/SessionSummary.js index 701f56c..5fb2a5b 100644 --- a/src/features/session/components/SessionSummary.js +++ b/src/features/session/components/SessionSummary.js @@ -22,11 +22,11 @@ const SessionSummary = ({ session }) => { <> - {`${t("Session")}: `} + {`${t("Session.Session")}: `} {session.sessionId} - {"Active: "} + {`${t("Session.Active")}: `} {session.active ? ( ) : ( @@ -34,7 +34,7 @@ const SessionSummary = ({ session }) => { )} - {"Start date: "} + {`${t("Session.StartDate")}: `} {t("DATE_FORMAT", { date: { value: session.startDate, format: "DD-MM-YYYY HH:mm:ss" } @@ -43,7 +43,7 @@ const SessionSummary = ({ session }) => { - {"Stop date: "} + {`${t("Session.StopDate")}: `} {session.stopDate ? t("DATE_FORMAT", { @@ -57,12 +57,12 @@ const SessionSummary = ({ session }) => { - {"Running time: "} + {`${t("Session.RunningTime")}: `} {session.runningTime} - {"Host: "} + {`${t("Session.Host")}: `} {session.hostName}