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

Make sure we always set a valid language #771

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

aurelien-reeves
Copy link
Contributor

@aurelien-reeves aurelien-reeves commented Jul 4, 2022

Fixes. #737 (comment)

We generate a list of valid languages by querying the DOM. That way we know we manage all languages possible for the given page.

Then we always make sure that when we want to show a specific language, it exists in the list. If not, we fallback to the first one.

@aurelien-reeves aurelien-reeves merged commit 2a521fc into main Jul 4, 2022
@aurelien-reeves aurelien-reeves deleted the fix-missing-languages branch July 4, 2022 15:46
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

Successfully merging this pull request may close these issues.

1 participant