This repository was archived by the owner on Mar 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Add option for localisation #1
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels