pow-auth / pow_assent

Multi-provider authentication for your Pow enabled app
https://powauth.com
MIT License
321 stars 50 forks source link

Translate provider_links button with gettext #184

Closed gilbertobr closed 3 years ago

gilbertobr commented 4 years ago

It would be possible to translate this button with gettext

<%= for link <- PowAssent.Phoenix.ViewHelpers.provider_links(@conn),
  do: content_tag(:span,  link) %>

How would it be? Are there other ways to translate?

danschultzer commented 4 years ago

Yeah, it's described here: https://hexdocs.pm/pow_assent/0.4.8/README.html#i18n

The messages can be found here (the one you are looking for is login_with_provider and remove_provider_authentication, the provider is found in conn.params["provider"]): https://hexdocs.pm/pow_assent/0.4.8/PowAssent.Phoenix.Messages.html#content