Commit 7b733f6
Changed files (3)
app
views
my
mfas
config
environments
locales
app/views/my/mfas/new.html.erb
@@ -9,8 +9,8 @@
<%= form_for current_user, url: my_mfa_path, method: :post do |form| %>
<%= form.hidden_field :tfa_secret, data: { target: 'tfa--setup.secret' } %>
- <%= form.submit "Save", class: 'btn btn-primary', data: { disable_with: 'Saving…' } %>
- <%= link_to "Cancel", my_dashboard_path, class: 'btn' %>
+ <%= form.submit t(".enable"), class: 'btn btn-primary', data: { disable_with: 'Saving…' } %>
+ <%= link_to t(".cancel"), my_dashboard_path, class: 'btn' %>
<% end %>
</div>
</div>
config/environments/development.rb
@@ -63,4 +63,6 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
+
+ config.action_view.raise_on_missing_translations = true
end
config/locales/en.yml
@@ -38,3 +38,8 @@ en:
new:
loading: "Loading…"
login: "Login"
+ my:
+ mfas:
+ new:
+ enable: 'Enable'
+ cancel: 'Cancel'