If a language is disabled, you cannot query content in that language in the GraphQL API. No results are returned, and the locale parameter will not override this.
To enable support for querying in that language again, go to the Optimizely Content Management System (CMS) Admin view > Config > Manage Website Languages. Enabled languages are available for editors to create content in that language. When done, you need to re-run the Optimizely Graph Content Synchronization job to resynchronize contents in the language that has just been enabled.
The reason you need to re-run the synchronization job is that if a language is disabled, the contents in that language will be removed from Optimizely Graph to save costs. So when the language is enabled again, the same contents need to be resynchronized.
Once the synchronization job finishes running, you will be able to query for contents in the enabled language again.
The version of contents in the enabled language will only be available if the Start page of a site has a version of that language.
For example, in practice, if a site start page has no French version, it is not possible to switch to French and open the home page of the site, so having French versions of sub-pages will not make much sense. By only including contents in languages that the start page has versions in, we save more data to be indexed in OptiGraph.
Select or deselect Enabled for the desired language, and click Save.
Re-run the synchronization job to re-sync contents in the enabled language.
Updated 3 months ago