Content Localization

A flexible content API for internalization, made possible with GraphCMS.

Write content to make your users feel at home

Write content to make your users feel at home

GraphCMS provides an excellent localization API that you can use to publish content for all or specific locales in your project.

Manage content localization via the GraphCMS interface or the Mutations API.

Learn how to setup locales

Content Localization in action

You can query or mutate content localizations via the API or dashboard.

Query

query {
pages {
id
title
slug
locale
localizations(includeCurrent: true) {
locale
title
}
}
}

Mutation

mutation {
createPage(
data: {
title: "Content Localization",
slug: "content-localization"
localizations: {
create: [{
data: {
title: "Inhaltslokalisierung",
},
locale: de
}]
}
}
) {
id
}
}

Response

{
"data": {
"pages": [
{
"id": "ck7g2vs1k00110188fmc81h26",
"title": "Content Localization",
"slug": "content-localization",
"locale": "en",
"localizations": [
{
"locale": "en",
"title": "Content Localization"
},
{
"locale": "de",
"title": "Inhaltslokalisierung"
}
]
}
]
}
}

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy