Ratnesh-Team / Rehabify

The Path to a Brighter Tomorrow "
https://rehabify.ratn.tech
MIT License
12 stars 17 forks source link

[FEAT]: AddingMulti-language Support in Rehabify #70

Closed IkkiOcean closed 22 hours ago

IkkiOcean commented 4 days ago

Description:

We need to integrate Google Translator into the Rehabify web application to allow users to translate all pages into multiple languages. This will enhance the user experience for non-English-speaking users by providing them with an accessible interface in their preferred language.

Tasks:

1.  Investigate the Google Translator API or other suitable translation tools.
2.  Integrate the translator into the main layout of the application.
3.  Ensure translation is available for all pages
4.  Add a language selector dropdown to the header/footer for easy language switching.
5.  Test translations to ensure proper formatting and layout across all languages.

Acceptance Criteria:

•   Users should be able to translate any page to their selected language using the Google Translator integration.
•   The layout and styling of pages should not break when the content is translated.
•   The language selector should be accessible and functional on all pages.

Priority: HIGH

Program: GSSOC-ext and hacktoberfest

Please add LEVEL 3 to the issue

ratnesh-maurya commented 1 day ago

sure go ahead,

IkkiOcean commented 1 day ago

@ratnesh-maurya I'm not able to login. can you help me with it? I tried using all the login credentials written in readme.md

Screenshot 2024-10-10 at 2 49 37 PM

Connected to MongoDB [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

[GIN-debug] GET /users --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.GetUsers.func2 (8 handlers) [GIN-debug] GET /NMK --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.GetNMK.func4 (8 handlers) [GIN-debug] GET /home-remedies --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.GetHomeremediesDetails.func6 (8 handlers) [GIN-debug] POST /signUp --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.AddUser.func7 (7 handlers) [GIN-debug] POST /signIn --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.VerifyUser.func8 (7 handlers) [GIN-debug] GET /doctor --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.GetDoctor.func10 (8 handlers) [GIN-debug] POST /addNmk --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.AddNMK.func11 (7 handlers) [GIN-debug] POST /addDoctor --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.AddDoctor.func12 (7 handlers) [GIN-debug] POST /addPatient --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.AddPatient.func13 (7 handlers) [GIN-debug] POST /NMK/approve --> github.com/Ratnesh-Team/Rehabify/routes.RehabifyRoutes.ApproveNMK.func14 (7 handlers) [GIN-debug] GET /swagger-ui/*any --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (7 handlers) 2024/10/10 14:29:37 Server listening on http://localhost:3000/

IkkiOcean commented 1 day ago

it might be CORs issue but I'm not well versed in golang

ratnesh-maurya commented 1 day ago

This is due your mongodb doesn't have any data for the user

do you want to make changes in backend If yes I can provide you my db, if no just run frontend with .env file it will work

IkkiOcean commented 1 day ago

This is due your mongodb doesn't have any data for the user

do you want to make changes in backend If yes I can provide you my db, if no just run frontend with .env file it will work

How do I bypass login page. I can not enter the website without logging in. is their any other way?

ratnesh-maurya commented 1 day ago

no you cannot bypass

ratnesh-maurya commented 1 day ago

@IkkiOcean
do you want to make changes in backend code

IkkiOcean commented 1 day ago

@IkkiOcean do you want to make changes in backend code

no my issue is about frontend, I need to check it before working for it. how can I work on it without checking it out

ratnesh-maurya commented 1 day ago

@IkkiOcean do you want to make changes in backend code

no my issue is about frontend, I need to check it before working for it. how can I work on it without checking it out

make a .env file with this VITE_BASE_URL = rehabify-production.up.railway.app

and run the project you will able to login in frontend

IkkiOcean commented 1 day ago

@IkkiOcean do you want to make changes in backend code

no my issue is about frontend, I need to check it before working for it. how can I work on it without checking it out

make a .env file with this VITE_BASE_URL = rehabify-production.up.railway.app

and run the project you will able to login in frontend

it still persists. I cant login

ratnesh-maurya commented 1 day ago

@IkkiOcean do you want to make changes in backend code

no my issue is about frontend, I need to check it before working for it. how can I work on it without checking it out

make a .env file with this VITE_BASE_URL = rehabify-production.up.railway.app and run the project you will able to login in frontend

it still persists. I cant login

can you send me network tab screenshot what is the request and response

IkkiOcean commented 1 day ago

@IkkiOcean do you want to make changes in backend code

no my issue is about frontend, I need to check it before working for it. how can I work on it without checking it out

make a .env file with this VITE_BASE_URL = rehabify-production.up.railway.app and run the project you will able to login in frontend

it still persists. I cant login

can you send me network tab screenshot what is the request and response

Screenshot 2024-10-10 at 7 08 09 PM Screenshot 2024-10-10 at 7 08 40 PM
ratnesh-maurya commented 1 day ago

use this in .env file VITE_BASE_URL =https://rehabify-production.up.railway.app

ratnesh-maurya commented 1 day ago

if error still not solved ping me on discord ,

IkkiOcean commented 1 day ago

use this in .env file VITE_BASE_URL =https://rehabify-production.up.railway.app

thanks for you time. its working now. so the resquest was routing through local host instead of the backend server url.

ratnesh-maurya commented 22 hours ago

Great work @IkkiOcean 🎉