Force enable undetermined language #2851
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables undetermined language for all existing users, and also enables it whenever the user language is updated. This is necessary because many posts don't have a language tag (e.g. those from other federated platforms), so Lemmy users won't see them if undetermined language is disabled. This hack can be removed once a majority of posts have language tags, or when it is clearer for new users that they need to enable undetermined language.
I think we should include this in 0.17.3
By the way I noticed that the user language selection in lemmy-ui at /settings seems to be broken in latest dev version (Firefox). The
x
button does nothing so its not possible to clear the selection and select other languages. Also "undetermined" is not shown in enabled languages even when it is returned by Lemmy API.