Ability to set a post language and filter TLs by language
I know we've talked about this before and it's easier said than done, but I still wanted to open an issue on it to track progress/ideas.
This post by Eugen contains some helpful context as to how Mastodon has done this and user feedback: https://mastodon.social/@Gargron/103023005887487374
Here is how I think (in an ideal world) it could work without having to detect the language by the text.
Assigning a post language
Each post has a "language" field. This much already exists on Pleroma BE. A language is assigned to a post through a variety of priority-ranked means, applied by specificity.
- The post composer should allow you to manually set the language of a post. It will default based on other settings (user or site-wide), but this post-specific setting will always override those settings.
- New user preference setting to set posting language. This will be the default language that posts are set to (unless manually changed)
- If there is no user posting language selected, fall back on user interface language
- If there is no user interface language, fall back on instance default (New Pleroma BE instance setting?)
I think that this tiered-specificity system would allow for the most accuracy for determining a post language without having to rely on often faulty language detection software (which Mastodon is trying to remove, anyway, and doesn't work on memes)
Filtering by language
Each timeline should have its own filter option where you can choose to show only posts with the selected languages (multi-select like we used to have on Gab in the user settings). This could technically be done on the front-end... but I think it would be way better if it was done on the backend, or else you're gonna have a lot of empty timeline issues.
Update to add Feld's comment on Pleroma potential BE solution: https://spinster.xyz/@[email protected]/posts/A0CGnHRuIMDCMm4vtg