Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React libraries not the same as that under Django and errors parsing translate json #1008

Open
kris-gs opened this issue Dec 17, 2024 · 1 comment

Comments

@kris-gs
Copy link

kris-gs commented Dec 17, 2024

A couple of questions:

  1. Is this the correct React library? The React libraries from "https://github.com/wger-project/react" is not the same as the ones loaded with the original "https://github.com/wger-project/wger/" shown below under step 2
    Image

  2. From the host:8000 - after executing the "python manage.py runserver" for the server side Django from "https://github.com/wger-project/wger/"
    Image

  3. I encountered errors starting React with "yarn start":
    Image

I fixed these in the vite config (I am doing the right thing?). The changes I made below seemed to work and render the one under Step 1 but something is off as it's not the same interface - I am not sure where to make some changes to React (testing some extensions).

Image

For context - I have Django files from "https://github.com/wger-project/wger" under "folder>server" and React from "https://github.com/wger-project/react" under "folder>react":
Image

@rolandgeider
Copy link
Member

the menu is django! 😄 Only the pard in red is actually react. The ract app has a menu just so it's possible to navigate a bit and develop the components and everything, but it is not used

Image

The entry in src/locales/en/translation.json is a symlink to public/locales/en/translation.json but it seems this doesn't work in windows. You can just copy the original over and it should work, just remember to not commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants