Commit 7b733f6

mo <mo.khan@gmail.com>
2018-09-04 22:08:56
add missing translations.
1 parent c23ca24
Changed files (3)
app
views
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'