![]() ![]() This option, when checked, will allow you to translate the value on any entry of the given content type containing this field. In this popup, you can check the option Enable localization of this field. If you click on the Settings button on any of these two fields, you will see a popup like the following: The definition for this content type would look something like the following screenshot: That way, any new blog post you create should have these two pieces of content (title and body). For example, you could create a content type called Blog Post, which could have fields like a title (representing the title for the blog post) and body (representing the body of the blog). You can create your own content types, which have a name and a set of fields. Each space has a content model that represents the content types you create. After reviewing all the fields, click on the Save button.īy following these steps, a new locale will be listed under Settings > Locales grid, and you will be able to translate the content into the target language in the given space.Īs mentioned before, Contentful organizes content into spaces that allow you to group all the related content for a project.There are additional settings that you can specify but I recommend you keep them with the default values. For example, if you are adding Spanish (Spain) as the locale and you select English (US) as the fallback, then, if there is no content for a given item in Spanish, Contentful will return the English (US) content. The list is extensive but, if you require a locale that is not listed, you can use the Content Management API to create a custom one.Īdditionally, you can specify a fallback locale (if there is no content in the given locale), it will show the content in the locale selected as a fallback. The next step will be to select a locale.Click on Add Locale button on the right sidebar. By default, you will see that English (US) locale is enabled.Select the space where you want to add the locale.To enable a locale, you need to follow these steps: If you need your content to be available in multiple languages, the first step is to enable the corresponding locales at the space level. In this blog, I will explain these different features and will provide some best practices for Contentful Localization.Ĭontentful allows you to group the content in spaces, which can be defined as a collection of content with a certain purpose. Contentful has great support for localization, such as enabling languages, defining what pieces of content can be translated, and managing content in multiple languages. If you are building a website, you can use Contentful to manage its content and have developers create the site and access this content through an API. In other words, this platform focuses on managing the content and not how to present it. ![]() Contentful is a headless Content Management System (CMS).
0 Comments
Leave a Reply. |