Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Add option for localisation #1

@jstarpl

Description

@jstarpl

I think it would be great if, from the get-go, we would have an option for these strings (which are user-presentable) to be localizable. Obviously, a fallback to a simple string is neccessary, but making sure that these strings can be localized in 1.0 of this spec will mean that localization will be at least taken into account by implementers in some basic way.

"label": {
"type": "string",
"description": "The name of the action. This is displayed to the user."
},
"description": {
"type": "string",
"description": "A longer description of the action. This is displayed to the user."
},

W3C proposes this format: https://www.w3.org/TR/localizable-manifests/#language-maps for "Unitary manifests" , which I think is simple enough to use:

{
  "key": {
    "en": {"value": "Some string"}
    "fr": {"value": "Une variable de chaîne"}
  }
}

I think going for a "Unitary manifest" rather than using content negotiation at the HTTP level, makes sense since it will allow the end User Agent to make the decision which localization to use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions