# `Backpex`
[🔗](https://github.com/naymspace/backpex/blob/0.18.3/lib/backpex.ex#L1)

Backpex provides an easy way to manage existing resources in your application.

# `translate`

Translates a text with the configured translator_function. If a live_resource is given, it calls the LiveResource's translate callback.

## Examples

    Backpex.translate("Hello")

    Backpex.translate({"Hello %{name}", %{name: "World"}})

    Backpex.translate("Welcome", MyApp.LiveResource)

# `translate_error`

Translates an error text with the configured error_translator_function.

## Examples

    Backpex.translate_error("can't be blank")

    Backpex.translate_error({"must be greater than %{number}", %{number: 0}})

---

*Consult [api-reference.md](api-reference.md) for complete listing*
