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 estas etapas:

  1. Open your project and go to Tools > Content Delivery. Entrega de Conteúdo Over-The-Air
  2. Add new distribution using the Add Distribution button.
  3. Na caixa de diálogo exibida, nomeie sua distribuição.
  4. Selecione apenas os arquivos, traduções para os quais você deseja que sejam mostrados em seu aplicativo.
  5. Selecione uma das seguintes opções de exportação:
    • Default export – export translations in the original format of the selected files.
    • Target file bundles – export translations in the selected format regardless of the original format of the selected files. Read more about configuring target file bundles for distribution.
  6. Click Create.
    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 Over-The-Air
Note: CDN caches all the translations in release for up to 1 hour, and even when new translations are released in Crowdin Enterprise, CDN may return them with a delay.

Para Aplicativos Móveis

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

Para Aplicativos da Web

Para enviar o conteúdo traduzido para seus aplicativos da web por meio da entrega de conteúdo, use o cliente Crowdin OTA JavaScript.

Read more about Crowdin OTA JavaScript client.

Para gerenciar a entrega de conteúdo traduzido para seus aplicativos da web manualmente, use as seguintes instruções:

Form the URL to the translation file the following way:

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

{path_to_file} será o mesmo que para a compilação de tradução regular. Se seus arquivos não tiverem padrões de exportação com os espaços reservados de código de idioma (por exemplo, %locale%, %two_letters_code%, etc.), o sistema adicionará automaticamente o código de idioma do Crowdin no início do caminho.

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

Pricing

Pricing Component Free Quota Price
Request Count 1M/month $3.00/1M
Data Transfer 10GB/month $2.00/10GB

A request is considered any single query to a CDN (e.g., a request to a distribution manifest, a request to a distribution file, etc.).

Data transfer is the amount of data transferred over the network (including headers). The system delivers your language packages via CDN, containing all the existing translations.

If the distribution contains content divided into multiple files, a request to download each file is counted as a separate request. Additionally, the volume of files is also counted as a data transfer.

For example, if a distribution contains 20 files, each of which is 5MB, the download is counted as 20 requests and 100MB of data transfer.

To reduce requests to the CDN, you can put all the necessary content into one file (using Bundles), and when it is downloaded, the system counts one request instead of 20 separate ones. Additionally, caching configuration can be made on the app’s side.

In our statistics, we use data provided by AWS. If 1,000,001 (1 million and 1) requests are made in a month, the price for requests will be $6. If 10GB and 1 byte are transferred in a month, the price for data transfer will be $4. The combined total will be $10 per month for requests and data transfer.

Este artigo foi útil?