LemmyNet / lemmy-ui

The official web app for lemmy.
https://join-lemmy.org/
GNU Affero General Public License v3.0
880 stars 333 forks source link

Language tags for communities/sites #783

Closed Nutomic closed 1 year ago

Nutomic commented 1 year ago

see #771

dessalines commented 1 year ago

This is done now.

Nutomic commented 1 year ago

Where is the code for this?

dessalines commented 1 year ago

I'll check again today

dessalines commented 1 year ago

I'm not exactly sure how I'm going to solve the "limit language selection when creating a post or comment" one... because discussion_languages only comes back from GetCommunity. Just too many complications to handle right now, so I'm just going to limit it to their user language, and let the backend reject incorrect community languages. Scenarios like:

Nutomic commented 1 year ago

Well we can add discussion_languages to those endpoints where its missing. Or rely on user languages for now and do some cleanup later.

dessalines commented 1 year ago

What currently works:

What doesn't work / is halfway broken:

poVoq commented 1 year ago

Since Mastodon and Akkoma (Pleroma fork) seem to have build in translators now (using Libretranslate!) I think it might be good to see how they tag the language of a post and make this compatible.

Nutomic commented 1 year ago

This is already implemented.