phoenix_locale v0.0.2 PhoenixLocale.Helpers

helper functions to use on views

Summary

Functions

call prefered_locale, if the result is nil, return the default locale

translate given string with the apropriated locale, return empty string if the translation string doesn’t exist

Functions

l(conn)

call prefered_locale, if the result is nil, return the default locale

t(conn, string, bindings \\ [])

translate given string with the apropriated locale, return empty string if the translation string doesn’t exist