Added mailer i18n (#436)

* Added mailer i18n

* Added translation to mailer in the JS

Also added a generic way to add JS translation through a javascript entry in the locale file

* Moved line-breaks from translations to JS file
This commit is contained in:
Rafael Baldasso Audibert
2019-04-11 12:30:50 -03:00
committed by Jesus Federico
parent 88776eaadb
commit 822dd27509
8 changed files with 83 additions and 26 deletions

View File

@ -16,10 +16,10 @@
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
%>
Welcome to <%= t('bigbluebutton') %>!, <%= @user[:name] %>
<%= t('mailer.user.verify_email.welcome', bigbluebutton: t('bigbluebutton'), name: @user[:name]) %>
You have successfully registered your <%= t('bigbluebutton') %> account, your username is: <%= @user[:email] %>.
<%= t('mailer.user.verify_email.success', bigbluebutton: t('bigbluebutton'), email: @user[:email]) %>
To verify your account, just follow this link: <%= @url %>
<%= t('mailer.user.verify_email.verify_text', url: @url) %>
Thanks for joining and have a great day!
<%= t('mailer.user.verify_email.thanks') %>