File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v0.4.0 (2024-08-25)
4+
5+ - Add the Detect language as a supported language ([ #61 ] ( https://github.com/hergetto/deepl_ex/pull/61 ) )
6+
37## v0.3.0 (2024-05-19)
48
59- Add the Arabic language as a supported language ([ #48 ] ( https://github.com/hergetto/deepl_ex/pull/48 ) )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ by adding `deepl_ex` to your list of dependencies in `mix.exs`:
1010``` elixir
1111def deps do
1212 [
13- {:deepl_ex , " ~> 0.3 .0" }
13+ {:deepl_ex , " ~> 0.4 .0" }
1414 ]
1515end
1616```
@@ -27,3 +27,16 @@ config :deepl_ex,
2727```
2828
2929We determine the tier based on the api key, so you don't need to specify the tier.
30+
31+ ### Example
32+
33+ ``` elixir
34+ iex> Application .put_env (:deepl_ex , :api_key , " your_deepl_api_key_here" )
35+ :ok
36+ iex> DeeplEx .translate (" Hoje vou comer." , :PT , :EN )
37+ {:ok , " Today I'm going to eat." }
38+ iex> DeeplEx .translate (" Hoje vou comer." , :ZZ , :EN )
39+ {:error , :invalid_language_specification }
40+ iex> DeeplEx .translate (" Hoje vou comer." , :DETECT , :EN )
41+ {:ok , " Today I'm going to eat." }
42+ ```
Original file line number Diff line number Diff line change 11defmodule DeeplEx.MixProject do
22 use Mix.Project
33
4- @ version "0.3.0"
4+ @ version "0.4.0"
5+ @ description "DeepL API wrapper for Elixir"
56 @ source_url "https://github.com/hergetto/deepl_ex"
67
78 def project do
89 [
910 app: :deepl_ex ,
1011 version: @ version ,
12+ description: @ description ,
1113 elixir: "~> 1.14" ,
1214 elixirc_paths: elixirc_paths ( Mix . env ( ) ) ,
1315 start_permanent: Mix . env ( ) == :prod ,
@@ -23,7 +25,6 @@ defmodule DeeplEx.MixProject do
2325 docs: docs ( ) ,
2426
2527 # Hex.pm
26- description: description ( ) ,
2728 package: package ( )
2829 ]
2930 end
@@ -80,13 +81,6 @@ defmodule DeeplEx.MixProject do
8081 ]
8182 end
8283
83- # Specifies the description for Hex.pm.
84- defp description do
85- """
86- DeepL API wrapper for Elixir
87- """
88- end
89-
9084 # Specifies the package information for Hex.pm.
9185 defp package do
9286 [
You can’t perform that action at this time.
0 commit comments