Packages

Simplify handling localized routes in Elixir Phoenix applications, with and without LiveView

Current section

Files

Jump to
Raw

mix.exs

defmodule Multilingual.MixProject do
use Mix.Project
@app :multilingual
def project do
[
app: @app,
version: "0.1.9",
elixir: "~> 1.17",
description:
"Simplify handling localized routes in Elixir Phoenix applications, with and without LiveView",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
start_permanent: Mix.env() == :prod
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_cldr, ">= 2.39.2", optional: true},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:gettext, "~> 0.18", optional: true},
{:jason, ">= 1.4.1"},
{:phoenix, ">= 1.7.10"},
{:phoenix_live_view, ">= 0.20.1", optional: true}
]
end
defp elixirc_paths(:test), do: ["lib", "test/project"]
defp elixirc_paths(_env), do: ["lib"]
defp package do
%{
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/joeyates/multilingual"
},
maintainers: ["Joe Yates"]
}
end
end