GettextTranslator.Supervisor (gettext_translator v0.2.0)

View Source

Supervisor for GettextTranslator processes.

This module provides a supervisor that can be included in your application's supervision tree to manage the GettextTranslator dashboard components.

Usage

Add to your application supervision tree:

# In your application.ex
def start(_type, _args) do
  children = [
    # ... other children
    GettextTranslator.Supervisor
  ]

  opts = [strategy: :one_for_one, name: MyApp.Supervisor]
  Supervisor.start_link(children, opts)
end

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.