Dictionary Service
Current version: 20.x
Sitecore Headless Services provides an API endpoint for retrieving application-specific Dictionary data.
Dictionary Service endpoint
The format for the Dictionary API endpoint is:
RequestResponse
/sitecore/api/jss/dictionary/<app>/<language>/
The endpoint requires the following parameters:
Name |
Description |
---|---|
|
The name of the application to retrieve the Dictionary for. |
|
The language to retrieve the Dictionary for. |
Example
A request to http://mysitecoreinstance.dev/sitecore/api/jss/dictionary/JssReactWeb/es-MX/
returns:
RequestResponse
{
"lang": "es-MX",
"app": "MyRenderingApp",
"phrases": {
"Copyright": "{{year}} Inicio Bootstrap",
"Home": "Inicio",
"Start Bootstrap": "Inicio Bootstrap"
}
}