Consegna dei Contenuti

La distribuzione è un vault CDN che rispecchia il contenuto tradotto del tuo progetto ed è richiesto per l’integrazione con le app iOS, Android o Web.

Configurazione della Distribuzione

Per configurare una distribuzione, segui questi passaggi:

  1. Open your project and go to Tools > Content Delivery. Consegna Contenuto Via Etere
  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.
    Consegna Contenuto Via Etere
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.

Per le Applicazioni Mobili

Per inviare il contenuto della traduzione alle tue app mobili tramite la consegna del contenuto, usa le SDK di Crowdin:

Per le Applicazioni Web

Per inviare il contenuto tradotto alle tue app web tramite consegna del contenuto, usa il client di JavaScript OTA di Crowdin.

Leggi di più sul client di JavaScript OTA di Crowdin.

Per gestire la consegna del contenuto tradotto alle tue app web manualmente, usa le seguenti istruzioni:

Forma l’URL al file di traduzione nel modo seguente:

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

{path_to_file} sarà lo stesso per la build di traduzione regolare. Se i tuoi file non hanno schemi d’esportazione con i segnaposto del codice linguistico (es., %locale%, %two_letters_code%, etc.), il sistema aggiungerà automaticamente il codice linguistico di Crowdin all’inizio del percorso.

Puoi trovare l’elenco dei codici linguistici del tuo progetto nelle meta-informazioni sul contenuto della tua distribuzione:

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

Questo articolo è stato utile?