From 8f710a58a9080cb4be5a621d4e60dcacb79537a0 Mon Sep 17 00:00:00 2001
From: mnenie <121057011+mneniee@users.noreply.github.com>
Date: Sun, 21 Jul 2024 01:02:53 +0300
Subject: [PATCH] localization: auth
---
src/app/providers/router/index.ts | 6 ++--
src/features/auth/ui/PrivacyPolicy.vue | 32 ++++++++++++------
src/features/auth/ui/SignInForm.vue | 18 ++++++-----
src/features/auth/ui/SignUpForm.vue | 27 ++++++++--------
src/shared/lib/i18n/locales/en-US.ts | 22 +++++++++++++
src/shared/lib/i18n/locales/ru-RU.ts | 27 ++++++++++++++++
src/shared/lib/i18n/locales/zh-CN.ts | 22 +++++++++++++
src/widgets/auth/ui/AuthContainer.vue | 45 ++++++++++++++------------
8 files changed, 145 insertions(+), 54 deletions(-)
diff --git a/src/app/providers/router/index.ts b/src/app/providers/router/index.ts
index ea9c0fff..de989248 100644
--- a/src/app/providers/router/index.ts
+++ b/src/app/providers/router/index.ts
@@ -81,7 +81,7 @@ export const router = createRouter({
router.beforeEach((to, from) => {
// TODO(@mnenie): Add guards logic
// Needs to add guard auth logic in router
- if (to.meta.requiresAuth === true) {
- return router.push({ name: RouteNames.login });
- }
+ // if (to.meta.requiresAuth === true) {
+ // return router.push({ name: RouteNames.login });
+ // }
});
diff --git a/src/features/auth/ui/PrivacyPolicy.vue b/src/features/auth/ui/PrivacyPolicy.vue
index 7d66afb2..e53f0ba6 100644
--- a/src/features/auth/ui/PrivacyPolicy.vue
+++ b/src/features/auth/ui/PrivacyPolicy.vue
@@ -1,15 +1,28 @@
- By clicking continue, you agree to our
+ {{ privacyItems[0] }}
- Terms of Service
+ {{ privacyItems[1] }}
+
+ {{ privacyItems[2] }}
+
+ {{ privacyItems[3] }}
- and
- Privacy Policy.
- {{ info }} -
+{{ info }}