Idiom.Backend.Phrase (idiom v0.6.8)

Backend for Phrase.

Not yet complete. Use at your own risk. Things might break at any time.

Usage

In order to use the Phrase backend, set it in your Idiom configuration:

config :idiom,
  backend: Idiom.Backend.Phrase

Configuration

The Phrase backend currently supports the following configuration options:

config :idiom, Idiom.Backend.Phrase,
  datacenter: "eu", # or "us"
  distribution_id: "", # required
  distribution_secret: "", # required
  locales: ["de-DE", "en-US"], # required
  namespace: "default",
  fetch_interval: 600_000,
  otp_app: nil # optional, for Phrase's appVersion support

Creating a distribution

In order to create a Phrase Strings OTA distribution, head to the "Over the air" page in your Phrase dashboard and create a distribution using the i18next (React Native) platform. This will give you a Distribution ID as well as a secret for both development and production environments.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.