Entrega de conteúdo

Distribution is a CDN vault that mirrors your project’s translated content and is required for integration with the iOS, Android, or Web apps.

Configuração de distribuição

Para configurar uma distribuição, siga estes passos:

  1. Open your project and go to Tools > Content Delivery. Entrega de Conteúdo ao vivo
  2. Add new distribution using the Add distribution button.
  3. In the appeared dialog, name your distribution.
  4. Select only the files, translations for which you want to be shown in your application.
  5. 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.
  6. Click Next.
    Over-the-Air Content Delivery
  7. Copy the distribution hash so you can use it for integration.
    Over-the-Air Content Delivery
  8. Сreate as many distributions as you need and select different files for each. You’ll need to click Release next to the needed distribution every time you want to send new translations to the app.
    Entrega de Conteúdo ao vivo
Note: CDN caches all the translations in release for up to 1 hour, and even when new translations are released in Crowdin, CDN may return them with a delay.

Para aplicativos móveis

Para enviar o conteúdo traduzido para os seus aplicativos móveis através da entrega de conteúdo, use os SDKs do Crowdin:

Para aplicativos web

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

Read more about 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 the following way:

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.

Você pode encontrar a lista dos códigos de idioma do seu projeto nas meta-informações sobre o conteúdo de distribuição:

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

Este artigo foi útil?