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

Adding language preferences for the UI and tasks #881

Merged
merged 3 commits into from Jan 22, 2023

Conversation

fozziethebeat
Copy link
Collaborator

@fozziethebeat fozziethebeat commented Jan 22, 2023

Fixes #854

This creates a new UI component that lets a user select their preferred language. The selection will change both the UI display language via next-i18next and which language tasks we fetch.

When fetching tasks or answering them, we extract the user's language and pass that along to the backend.

Copy link
Collaborator

@AbdBarho AbdBarho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! I wonder if we could use this to translate all ranking tasks, instead of having the backend send the descriptions.

@AbdBarho AbdBarho merged commit 4373244 into main Jan 22, 2023
@AbdBarho AbdBarho deleted the 854-language-preferences branch January 22, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow user to set their preferred language on web
2 participants