Content localization
#Overview
Localization is supported as a core feature in Hygraph. It allows a single piece of content to hold many configured locales.
#What you can do
In your project settings you can define how many locales you want to support, choosing from a range of common defaults to providing custom locales as well.
Depending on the content model and the number of locales activated in the project several locales can be available.
Localized content fields
Locales function by creating localized fields on the document model, not creating a duplication of the content.
You can stage, eventually version and evolve localized content entries with "per field" granularity.
#Adding a translation
Content Localizations List
- Navigate to the Content Editor and select a view.
- Create a new entry or, alternatively, edit an existing one.
- Find
Localizations
on the right sidebar and click the+
icon to add a locale variant to all fields in the content entry that support localization.
#Show or hide translated fields
You can toggle the "eye" icon on the left of a locale on the contextual sidebar of a content entry to show / hide the localized fields.
Toggle translated fields
An open eye means the localized fields are visible and a close eye means they are hidden.