I18n
i18n locale translations helpers
Installation
If available in Hex, the package can be installed as:
Add i18n to your list of dependencies in
mix.exs:def deps do
[{:i18n, "~> 0.0.1"}]end
Ensure i18n is started before your application:
def application do
[applications: [:i18n]]end
I18n.add(:en, %{
"home" => %{
"welcome" => "Welcome Home, %s!"
}
})
I18n.translate(:en, "home.welcome", ["Nathan"])