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

Project: use zh-cn if the language code is the unsupported zh #370

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented Jun 6, 2024

Simple and small fix for this issue.
We should still decide what to do at the db level still.

Closes #358

Simple and small fix for this issue.
We should still decide what to do at the db level still.

Closes #358
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

This looks good for now. We could also consider doing this same logic at the model level, without migrating any model fields.

I've opened up an issue on our repo to track the bug:

@humitos humitos merged commit e2f3f67 into main Jun 10, 2024
4 checks passed
@humitos humitos deleted the humitos/language-code branch June 10, 2024 10:52
humitos added a commit that referenced this pull request Jul 9, 2024
We keep returning 500 on projects with `zh`.
This another interation on this fix for now.

Sentry https://read-the-docs.sentry.io/issues/5066249292/
Related #370
humitos added a commit that referenced this pull request Jul 11, 2024
* Project: use a custom template filter to avoid `zh` languages

We keep returning 500 on projects with `zh`.
This another interation on this fix for now.

Sentry https://read-the-docs.sentry.io/issues/5066249292/
Related #370

* Lint automatically

* Manual linting

* Feedback from review
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.

Project's detail: 500 when loading on zh language
2 participants