DEV Community

Ben Halpern
Ben Halpern

Posted on

Changelog: Language detection and segmentation

This is something we had been steadily thinking about and/or working on for a while, but the influx of new Japanese members encouraged us to ship something now. It's not fully baked but it's a helpful start.

We now automatically detect (human) languages for posts and allow you to determine which languages you'd like to see in your feed. You do this in your settings. We have settings for some of the popular languages on the platform right now, but in the future it should be pretty generalized. We also make an estimation on your settings when you sign up depending on such things like your Twitter language settings.

Software development communication globally conducts itself mostly in English, but that's not how the world works and we want to make pushes for a more inclusive environment for software developers whenever possible. Language-oriented features also help preserve a better experience for English-only software developers. You're now much less likely to see a Spanish or Japanese post in your feed if you have not indicated that as a language preference.

I think a natural feature to complement some of this would be translations of great existing posts into different languages and having that functionality be fairly native to the platform. That's a matter of modeling out feature and building clear permissions settings for this sort of thing.

We still lack a lot of internationalization features within the app, but it's all a work in progress. This was a productive push to get us heading well in that direction.

Happy coding ❤️

Top comments (20)

Collapse
 
voins profile image
Alexey Voinov

I'd suggest not to change the language settings based on geolocation. :) A lot of people for some unknown reason does it. It is very surprising to see an interface in some new language every time you cross the border. (And here, in Europe it happens relatively often) :)

Collapse
 
ben profile image
Ben Halpern

Yes, we do not change any language settings based on geolocation. We use different, and better signals, to make a guess upon signing up, hopefully with few false positives. But then any adjustments are up to you in the settings.

Collapse
 
lpasqualis profile image
Lorenzo Pasqualis

Cool! Any chances that you will support Italian as one of the languages?

Collapse
 
ben profile image
Ben Halpern

Pushing it up now! The cut off is pretty arbitrary at this point, so happy to take requests. English, Japanese and to a lesser extent Spanish, are the only languages that have any kind of traction on the platform.

Collapse
 
lpasqualis profile image
Lorenzo Pasqualis

Awesome, thank you. I might be able to bring some Italian folks to the site over time.

Collapse
 
mogery profile image
Gergő Móricz

How about Hungarian?

Thread Thread
 
ben profile image
Ben Halpern

Sure thing, but it'll have to wait til Monday because I've moved onto other work for today. 😁

Collapse
 
wintermute21 profile image
John Best

As a Francophone, I thank you.

Collapse
 
ben profile image
Ben Halpern

C'est notre plaisir

Collapse
 
martyonthefly profile image
Sylvain Marty

Moi aussi, je serai ravis d'aider de quelque façon que ce soit ! :)

PS: I learn so much english when I surf on this website ! <3

Thread Thread
 
wintermute21 profile image
John Best

Je suis américain mais j'espère pouvoir bien parler français.

Thread Thread
 
martyonthefly profile image
Sylvain Marty

The more you practise, the best you'll read and speak ;)

This is working with english for me but it gonna work with all human/programmation languages! :)

Thread Thread
 
wintermute21 profile image
John Best

Mais oui. Merci.

Collapse
 
wintermute21 profile image
John Best

S'il vous plaît laissez-moi savoir si je peux aider à traduire.

Collapse
 
djviolin profile image
István Lantos

When I'm first opening dev.to from facebook links, I've got 404, after refresh, the articles will load. FIY if it's a possible bug that maybe not caused my PC.

Collapse
 
martyonthefly profile image
Sylvain Marty

I got this bug a few month ago! I contacted them via the contact form. They gave me a response pretty quickly though, thanks to @andy and the dev.to team which is very reactive to its community! :)

Collapse
 
andy profile image
Andy Zhao (he/him)

Hey István, gonna send you an email. Thanks for mentioning me @martyonthefly !

Collapse
 
djviolin profile image
István Lantos

I made my email address public on my profile. I don't have so much a problem with it, but maybe it's a bug and I'm just reporting it.

Thread Thread
 
andy profile image
Andy Zhao (he/him)

Yeah, thanks for that. Think I know what the issue is. Feel free to make your email private again if you'd like.

Collapse
 
fernandosavio profile image
Fernando Sávio

Nice feature!
Will there be a way to hint the language used on a post? Like a lang: pt-BR in Front-Matter?

And how about brazilian portuguese support? I really don't know how many brazilians post here, I'm just curious. :)