0.1.15
This commit is contained in:
parent
42f9a8ebdd
commit
0743f21847
@ -10,7 +10,7 @@ by adding `localizator` to your list of dependencies in `mix.exs`:
|
|||||||
```elixir
|
```elixir
|
||||||
def deps do
|
def deps do
|
||||||
[
|
[
|
||||||
{:localizator, "~> 0.1.14"}
|
{:localizator, "~> 0.1.15"}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
@ -51,6 +51,9 @@ defmodule Localizator.Translator do
|
|||||||
translate(source, map.to, map.from, translator)
|
translate(source, map.to, map.from, translator)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@spec translate(nil, to, from_may_be_nil, translator) :: result
|
||||||
|
def translate(empty, _to, _from, _translator) when is_nil(empty), do: nil
|
||||||
|
|
||||||
@spec translate(String.t(), to, from_may_be_nil, translator) :: result
|
@spec translate(String.t(), to, from_may_be_nil, translator) :: result
|
||||||
def translate(string, to, from, translator) when is_binary(string) do
|
def translate(string, to, from, translator) when is_binary(string) do
|
||||||
case Commons.is_html?(string) do
|
case Commons.is_html?(string) do
|
||||||
|
2
mix.exs
2
mix.exs
@ -4,7 +4,7 @@ defmodule Localizator.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :localizator,
|
app: :localizator,
|
||||||
version: "0.1.14",
|
version: "0.1.15",
|
||||||
elixir: "~> 1.10",
|
elixir: "~> 1.10",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps()
|
deps: deps()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user