floss.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
For people who care about, support, and build Free, Libre, and Open Source Software (FLOSS).

Administered by:

Server stats:

686
active users

Does anyone know a way to query the logged-in account's locale (= display language) using the Mastodon API? From what I can tell, I need this to determine whether to show the Translate button or not.

discontinued pink shark app

@apps Thanks! But uhm, where? The `accounts/verify_credentials` method doesn't have locale information anywhere from what I can tell :/

@megalodon
In source object attached to account reply. There is language inside.

@apps Ah, I see! Appears to just be the default posting language again (which can also be queried using /preferences) - not the display language/locale which is also used for the translation, unfortunately