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

[BUG] Project instructions do not pick the user opted language #6338

Closed
ramyaragupathy opened this issue Apr 17, 2024 · 1 comment · Fixed by #6343
Closed

[BUG] Project instructions do not pick the user opted language #6338

ramyaragupathy opened this issue Apr 17, 2024 · 1 comment · Fixed by #6343

Comments

@ramyaragupathy
Copy link
Member

Describe the bug
For a given project there are both English and French text available for:

  • description
  • short description
  • detailed instructions

and the default language is chosen as English. Now when the user changes the default language to French from their settings section, project description and short description loads in French. However detailed instructions are still in English.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a private project
  2. Fill in short description, description and detailed instructions in English and French
  3. Save the project
  4. Go to user settings and choose the default language as English
  5. Now go to the private project page. Instructions, description and short description loads in English
  6. Go to user settings and choose the default language as French
  7. Now go to the private project page. Instructions loads in English, while description and short description loads in French

Expected behavior

When the project has instructions in a language that's default for the user, that should load by default instead on English instructions.

Screenshots

image
@kaditya97
Copy link
Member

The problem is with frontend the api (/api/v2/projects/1/queries/summary/) is being called with headers Accept-Language: en which is by default, the header should be like Accept-Language: fr while api is being called. It should be like in second image which is being called by project info page. @royallsilwallz
image
image

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

Successfully merging a pull request may close this issue.

3 participants