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

Post language should federate #1134

Closed
o-simardcasanova-net opened this issue Jun 14, 2024 · 4 comments
Closed

Post language should federate #1134

o-simardcasanova-net opened this issue Jun 14, 2024 · 4 comments
Labels

Comments

@o-simardcasanova-net
Copy link

Both Bluesky and Mastodon support post languages, i.e., the user can set the language(s) in which a post is written.

Bridgy should federate this metadata, as not federating the language may greatly impact the visibility of posts that are not written in English.

From this conversation on Bluesky: https://bsky.app/profile/o.simardcasanova.net/post/3kuvhhogdp22x

@ikke-t
Copy link

ikke-t commented Jul 9, 2024

In addition to visibility, also transalte button in mastodon clients don't work properly due getting wrong language from post metadata.

@snarfed snarfed added the now label Jul 10, 2024
@snarfed
Copy link
Owner

snarfed commented Jul 10, 2024

In Bluesky, looks like this is the top-level langs array in app.bsky.feed.post, which has two-letter ISO_639-1 language codes:

          "langs": {
            "type": "array",
            "description": "Indicates human language of post primary text content.",
            "maxLength": 3,
            "items": { "type": "string", "format": "language" }
          }

Example posts:

In AS2, it's the top-level contentMap field, a mapping from ISO 639-1 language code to full content. We added that in #681.

snarfed added a commit to snarfed/granary that referenced this issue Jul 10, 2024
…tentMap

...which isn't officially part of AS1; we steal it from AS2.

for snarfed/bridgy-fed#1134
@snarfed
Copy link
Owner

snarfed commented Jul 11, 2024

@snarfed
Copy link
Owner

snarfed commented Jul 11, 2024

Thanks for the nudge here, all! Very good idea.

@snarfed snarfed closed this as completed Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants