View Source GettextLLM.Translator.Translator behaviour (gettext_llm v0.1.9)

Translator behavior. Any translators must implement this.

Summary

Callbacks

translate(config, opts)

@callback translate(
  GettextLLM.Translator.Specs.config(),
  GettextLLM.Translator.Specs.opts()
) ::
  {:ok, String.t()} | {:error, any()}