Доставлення вмісту

Over-the-Air Content Delivery is a feature that allows you to instantly update sources and translations in your mobile, server, desktop, or web apps with a single click without preparing a new release.

How It Works

The following illustrations provide a visual representation of how source and translation content delivery works for different types of applications.

Mobile, Server and Desktop Apps

Over-the-Air Content Delivery Flow for Mobile Apps

Web Apps

Over-the-Air Content Delivery Flow for Mobile Apps

Distribution Setup

Distribution is a CDN vault that mirrors your project’s translated content and is required for integration with mobile, server, desktop, and web apps.

To configure a distribution, follow these steps:

  1. Open your project and go to the Translations tab.
  2. Click Over-The-Air Content Delivery to expand the respective section.
    Over-the-Air Content Delivery
  3. Add a new distribution using the Add distribution button.
  4. In the appeared dialog, name your distribution.
  5. Select only the files, translations for which you want to be shown in your application.
  6. Select one of the following export options:
    • Default – export translations in the original format of the selected files.
    • Bundle – export translations in the selected format regardless of the original format of the selected files. Read more about configuring bundles for distribution.
  7. Click Next.
    Over-the-Air Content Delivery
  8. Copy the distribution hash so that you can use it for integration.
    Over-the-Air Content Delivery
  9. Create as many distributions as you need and select different files for each distribution. You’ll need to click Release next to the needed distribution each time you want to send new translations to the app. Alternatively, click Release all to send new translations to all apps at once.
    Over-the-Air Content Delivery
Note: The CDN caches all the translations in release for up to 1 hour, and even when new translations are released in Crowdin, the CDN may return them with a delay.

For Mobile Applications

To send the translated content to your mobile apps via content delivery, use the Crowdin SDKs:

For Web Applications

To send the translated content to your web apps via content delivery, use the Crowdin OTA JavaScript client.

Read more about the Crowdin OTA JavaScript client.

To manage the translated content delivery to your web apps manually, use the following instructions:

Form the URL to the translation file as follows:

https://distributions.crowdin.net/{distribution_hash}/content/{path_to_file}

{path_to_file} will be the same as for the regular translation build. If your files don’t have export patterns with the language code placeholders (e.g., %locale%, %two_letters_code%, etc.), the system will automatically add the Crowdin language code at the beginning of the path.

You can find the list of your project’s language codes in the meta-information of your distribution content:

https://distributions.crowdin.net/{distribution_hash}/manifest.json

Ця стаття була корисною?