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.
@megalodon
You can also use the device locale.
@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