Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose other users’ default/primary language #23067

Open
j-f1 opened this issue Jan 12, 2023 · 0 comments
Open

Expose other users’ default/primary language #23067

j-f1 opened this issue Jan 12, 2023 · 0 comments
Labels
suggestion Feature suggestion

Comments

@j-f1
Copy link
Contributor

j-f1 commented Jan 12, 2023

Pitch

Add a new language property to users, make it available via the API, and federate it over ActivityPub.

This property could be sourced from the “Interface language” preference, or it could be a new setting in the profile settings.

When reviewing the specs to see if there was already such a property defined in ActivityPub, I noticed that there appears to be an @language property in one of the examples, so other projects may already support this feature.

Motivation

Currently, posts have a language property attached, which allows clients to process text correctly based on the post language (for example, by using appropriate character rendering for code points that differ between fonts, or to tell a screen reader to switch to a voice that is capable of reading the language properly). However, there is no similar property available for profiles as a whole. Ideally, the profile language property would allow clients to render the display name, bio, and profile metadata in the appropriate language.

Screen reader users would benefit most directly, since the screen reader would be able to correctly pronounce the words in the bio. But lots of other people would benefit. For example, Han unification means that differently-rendered characters in different East Asian languages share a codepoint. Allowing people to specify their language would make it possible for clients to render such characters correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

1 participant