About the Translation Published Content API

Developer Preview
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.

 

Introduction

The Translation Published Content API allows you to query translated content that has been marked as ready to publish and listen for events when this content is created, updated, or deleted. Use the API to ensure that site visitors see the relevant translation for their locale, providing a seamless multilingual experience.

With the Translation Published Content API, your app can:

  • Query translation content that has been marked as ready to publish.
  • Keep content up-to-date by listening for events when content that is ready to publish is created, updated, or deleted.

This API is based on Wix Multilingual.

Before you begin

It's important to note the following points before starting to code:

  • You can only query content that has been marked as ready to publish. This happens when:

    • A content field is set to "published": true with the Create Content or Update Content methods of the Translation Content API.
    • The Wix user saves translations in the Translation Manager, which triggers the Translation Manager to call the Translation Content API and set the content's published status to true.
  • You can only use this API on sites where the Wix user has installed the Wix Multilingual app.

Use cases

Was this helpful?
Yes
No