-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
[feature] Better handling for post languages #2061
Comments
Today's #2066 is also related to post languages. |
Somewhat related: #1277 |
tried to change the language directly through db - didn't helped |
Hi, I'd like to note that #2066 isn't fully resolved. While BCP 47 states the tag structure, it delegates listing the tags to the Language Subtag Registry, maintained by IANA. There's language tags in that registry that aren't options in the GoToSocial backend. I'd like to help work on this, but I'm unfamiliar with the project's code and would like some guidance on how to proceed. |
Ah really, darn. Can you reproduce an example where you want to set a language for a post via the API but the (valid) tag isn't parsed correctly? I would expect that we can cover all "primary language" subtags, but "extended language" and "region" subtags might be spotty. |
I've found that some languages are missing from the "default posting language" setting. I sent this status using fedilab, should be tagged as being in Toki Pona. Can someone check that for me: https://fedi.cass-dlcm.dev/@cassdlcm/statuses/01HMRS1PWD3FDWM85JHR4WYMAA |
Ah right that/s known already. That "default posting language" dropdown is not exhaustive. See #2306
Language should be federated correctly, this is from the AP json of that status: "contentMap": {
"tok": "<p>toki!</p>"
}, I see it doesn't show up on the web view of the status though. |
There a couple of things we could be doing for posts to better surface their language property, which we don't currently do:
lang
html attribute in HTML version of posts #2064We should try and do some or all of these, to make GtS easier to use for folks who post/read posts in multiple different languages!
The text was updated successfully, but these errors were encountered: