Current section

Files

Jump to
gettext_llm lib translator translator_test.ex
Raw

lib/translator/translator_test.ex

defmodule GettextLLM.Translator.TranslatorTest do
@moduledoc """
Various translation functions for testing purposes.
"""
@behaviour GettextLLM.Translator.Translator
alias GettextLLM.Translator.Specs
@spec translate(Specs.config(), Specs.opts()) :: {:ok, String.t()} | {:error, any()}
def translate(_config, opts) do
{:ok, "#{opts.source_message} - #{opts.target_language_code}"}
end
end