PhoenixLinguist.Helpers
helper functions to use on views
Summary↑
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, raise exception if string doesnt exist |
t(conn, string, bindings \\ []) | translate given string with the apropriated locale, return empty string if the translation string doesn’t exist |
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
translate given string with the apropriated locale, raise exception if string doesnt exist