This introduces support for the format=drupal query string parameter to /api/strings, which outputs form strings in the shape needed for SG-1712:
{
"strings": {
"panel1.title": {
"value": "Page 1", // the English value of the string
"label": "Page 1 (panel title)", // the label to show in Drupal
"page": 0 // the index of the page it's on (xref: data.pages[index])
}
},
"pages": [
{
"key": "panel1", // the key of the panel component for this page
"title": "Page 1", // its English title (for labeling in Drupal)
"index": 0 // the index (probably redundant)
}
]
}
This introduces support for the
format=drupal
query string parameter to/api/strings
, which outputs form strings in the shape needed for SG-1712:cc @rloos289 đ