From e3bf674cb787317f9fb9fadfa1aac52a4e28f817 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+Berry-13@users.noreply.github.com> Date: Fri, 14 Jul 2023 03:43:08 +0200 Subject: [PATCH] Doc update, some i8n fix, Italian translation and a more realistic "chat.openai.com" login page (#634) * Update user_auth_system.md * Update Landing.tsx * i8n bug fix & added Italian translation --------- Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com> --- client/src/components/Auth/Login.tsx | 21 +++--- client/src/components/Auth/Registration.tsx | 21 +++--- client/src/components/ui/Landing.tsx | 2 +- client/src/localization/Translation.tsx | 2 + client/src/localization/languages/Eng.tsx | 2 + client/src/localization/languages/It.tsx | 76 +++++++++++++++++++++ client/src/localization/languages/Zh.tsx | 2 + docs/install/user_auth_system.md | 2 + 8 files changed, 109 insertions(+), 19 deletions(-) create mode 100644 client/src/localization/languages/It.tsx diff --git a/client/src/components/Auth/Login.tsx b/client/src/components/Auth/Login.tsx index 5e7562bbcf..8faf678d58 100644 --- a/client/src/components/Auth/Login.tsx +++ b/client/src/components/Auth/Login.tsx @@ -46,14 +46,17 @@ function Login() {

)} {startupConfig?.socialLoginEnabled && ( -
-
Or
-
+ <> +
+
Or
+
+
+ )} {startupConfig?.googleLoginEnabled && startupConfig?.socialLoginEnabled && ( <> -
+
-
+
-
+ @@ -99,13 +102,13 @@ function Login() { {startupConfig?.discordLoginEnabled && startupConfig?.socialLoginEnabled && ( <> -
+ diff --git a/client/src/components/Auth/Registration.tsx b/client/src/components/Auth/Registration.tsx index 3e3e8512e2..3ee0dfe818 100644 --- a/client/src/components/Auth/Registration.tsx +++ b/client/src/components/Auth/Registration.tsx @@ -285,14 +285,17 @@ function Registration() {

{startupConfig?.socialLoginEnabled && ( -
-
Or
-
+ <> +
+
Or
+
+
+ )} {startupConfig?.googleLoginEnabled && startupConfig?.socialLoginEnabled && ( <> -
+
-
+
-
+ @@ -339,13 +342,13 @@ function Registration() { {startupConfig?.discordLoginEnabled && startupConfig?.socialLoginEnabled && ( <> -
+ diff --git a/client/src/components/ui/Landing.tsx b/client/src/components/ui/Landing.tsx index 7a134c393e..2143c860ba 100644 --- a/client/src/components/ui/Landing.tsx +++ b/client/src/components/ui/Landing.tsx @@ -51,7 +51,7 @@ export default function Landing() { onClick={clickHandler} className="w-full rounded-md bg-gray-50 p-3 hover:bg-gray-200 dark:bg-white/5 dark:hover:bg-gray-900" > - ";{localize(lang, 'com_ui_example_10_year_old_b_day')}" → + "{localize(lang, 'com_ui_example_10_year_old_b_day')}" →