lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Auto detection of language when writing posts/comments.

Open lullis opened this issue 2 years ago • 3 comments

Is your proposal related to a problem?

Having to select which language to use on every post is an unnecessary pain. ~The list is also unnecessary long~ (Ignore, if you select the languages the list is filtered down)

Describe the solution you'd like.

~First, I'd like to be able to indicate which languages I can actually use. Maybe this requires some work on the backend to save the settings, but it could be done client-side by reading the values from the browser settings.~

I'd also like to have a sensilble default language: If I'm responding to a post in Portuguese, it's quite likely that my answer will be in Portuguese as well.

Describe alternatives you've considered.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/i18n/detectLanguage

Additional context

No response

lullis avatar Jun 13 '23 11:06 lullis

Would be useful to include a "Preferred Languages" list as part of user settings. If only one language is included, simply apply that for each post. Else, offer a concise list of all preferred languages for the user to select.

pproe avatar Jun 13 '23 12:06 pproe

This could be used https://github.com/kwonoj/cld3-asm in the browser

BCNelson avatar Jun 13 '23 18:06 BCNelson

Be mindful that there is also an effort to integrate this into the lemmy backend: https://github.com/LemmyNet/lemmy/issues/2870

EDIT: 'effort' might have too big of a word, maybe 'open ticket' suited better.

Scribbd avatar Jun 14 '23 08:06 Scribbd

You can write in any language if there is a built-in translator like in Facebook linkedin or soapbox

image

loid345 avatar Jun 17 '23 19:06 loid345

In the very least we should be selecting a default when only one option is available. I'm attempting to make a post on lemmy.world in a thread for which English is the only available option, but if I try and submit without first selecting a language my submission fails.

I've also seen this issue occurring in Jerboa

Zetaphor avatar Jun 18 '23 14:06 Zetaphor

Hello,

I would like to suggest using by default :

  • when creating a post, the last created post's language ;
  • when commenting a post, the post's language ;
  • when replying to a comment, the comment's language.

Thanks

KaKi87 avatar Jun 25 '23 17:06 KaKi87

A simpler implementation could just be to have an option for default comment language in the user's profile settings, and applying that instead of undetermined.

tripathiakshit avatar Jul 12 '23 16:07 tripathiakshit

Not really, because many of us write in multiple languages, not determined by our nationality, but by the community we're posting in, the author of the post we're replying to, etc.

Even if there's a language one writes in more than another, they can often switch from one to the other in the same minute, just because they're interacting in different communities, and that's when the user would forget to change the selection, which regularly happens on Mastodon already.

KaKi87 avatar Jul 12 '23 16:07 KaKi87