Skip to content

JSON-LD language maps for "preferredUsername"? #577

Description

@reiver

ActivityPub/ActivityStreams already supports JSON-LD language maps for the "content", "name", "summary" fields.
This makes it easier to use ActivityPub/ActivityStreams in multi-language situations.

One example of this includes simultaneously including the same text in multiple languages:

"nameMap": {
  "en": "Hello world",
  "fa":"درود جهان",
  "fr": "Bonjour le monde"
}

Another example of this is to indicate the language of a single field value:

"nameMap": {
  "fa":"درود جهان",
}

...

Currently ActivityPub/ActivityStreams does not support JSON-LD language maps for the "preferredUsername" field.

If ActivityPub/ActivityStreams supported JSON-LD language maps for the "preferredUsername" (i.e., preferredUsernameMap) then it, too, could be used in multi-language situations.

For example:

"preferredUsernameMap": {
  "en": "hello",
  "fa": "درود",
  "ko": "안녕하세요"
}

...

At FediForum in April 2026 there was (yet again) discussion over supporting user-names in non-latin alphabets.
There was also discussion about it at FediCon 2025.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions