ReCoded-Org / pebble-work-capstone-project

1 stars 2 forks source link

I78 dynamic routes for event view #87

Closed jangismarifet closed 2 years ago

jangismarifet commented 2 years ago

This PR has a whole batch of updates: 1) Event view dynamic routing: Each event has it's own link. The link extension is always based on the event._id. So you can access any event by going to localhost:3000/[eventId] Here are some event links. You can copy and paste these to see how each event page looks with the dummy data pulled from the API: // localhost:3000/62f7916d405fb6803a9b0057 // localhost:3000/62e980586aca79a3936917ef // localhost:3000/62e980586aca79a3936917f1 // localhost:3000/62e980586aca79a3936917f3 // localhost:3000/62e980586aca79a3936917f4 // localhost:3000/62e980586aca79a3936917f5 // localhost:3000/62e980586aca79a3936917f6 // localhost:3000/62e980586aca79a3936917f7 // localhost:3000/62e980586aca79a3936917f2

2) Event view Translation: Using i18next, everything (except for the data pulled from API) is translated. You can test this by changing the language in the navbar.

3) Navbar language routing: Before, when you change the language, the website goes to the homepage. I made it so that when you change language you see the page that you are on, just with the different language.

In English: image

In Turkish: image

closes #78 closes #80