exi18n v0.2.0 ExI18n.Compiler
Compile text with provided values.
Summary
Functions
Compile text with provided values
Functions
Compile text with provided values.
Parameters
Examples
iex> ExI18n.Compiler.compile("hello %{test}", %{"test" => "world"})
"hello world"
iex> ExI18n.Compiler.compile("hello %{test}", %{})
"hello %{test}"
iex> ExI18n.Compiler.compile(["hello %{test}", "No.%{nr}"], %{"test" => "world", "nr" => 1})
["hello world", "No.1"]