Dictionary Service

Abstract

Fetch Sitecore Dictionary data in headless front-end applications.

Sitecore Headless Services provides an API endpoint for retrieving application-specific Dictionary data.

Dictionary Service endpoint

The format for the Dictionary API endpoint is:

/sitecore/api/jss/dictionary/<app>/<language>/

The endpoint requires the following parameters:

Name

Description

app

The name of the application/site to retrieve the Dictionary for.

language

The language to retrieve the Dictionary for.

Example

A request to http://mysitecoreinstance.dev/sitecore/api/jss/dictionary/JssReactWeb/es-MX/ returns:

{
    "lang": "es-MX",
    "app": "MyRenderingApp",
    "phrases": {
        "Copyright": "{{year}} Inicio Bootstrap",
        "Home": "Inicio",
        "Start Bootstrap": "Inicio Bootstrap"
    }
}