diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index 9336af14..e54c2439 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -6,7 +6,7 @@ class AccountsController < ApplicationController
@account = if params[:type].blank?
Account.new
else
- Account.new(accountable_type: "Account::#{params[:type]}")
+ Account.new(accountable_type: "Account::#{params[:type]}", balance: nil)
end
else
head :not_found
@@ -21,7 +21,7 @@ class AccountsController < ApplicationController
@account.accountable = account_params[:accountable_type].constantize.new
if @account.save
- redirect_to accounts_path, notice: "New account created successfully"
+ redirect_to accounts_path, notice: t(".success")
else
render "new", status: :unprocessable_entity
end
diff --git a/app/models/account/credit.rb b/app/models/account/credit.rb
index fc3733ec..06e91afc 100644
--- a/app/models/account/credit.rb
+++ b/app/models/account/credit.rb
@@ -1,7 +1,3 @@
class Account::Credit < ApplicationRecord
include Accountable
-
- def type_name
- "Credit Card"
- end
end
diff --git a/app/models/account/depository.rb b/app/models/account/depository.rb
index d40e58d3..b7d4cb30 100644
--- a/app/models/account/depository.rb
+++ b/app/models/account/depository.rb
@@ -1,7 +1,3 @@
class Account::Depository < ApplicationRecord
include Accountable
-
- def type_name
- "Bank Accounts"
- end
end
diff --git a/app/models/account/investment.rb b/app/models/account/investment.rb
index 32029c3a..57bdfcf8 100644
--- a/app/models/account/investment.rb
+++ b/app/models/account/investment.rb
@@ -1,7 +1,3 @@
class Account::Investment < ApplicationRecord
include Accountable
-
- def type_name
- "Investments"
- end
end
diff --git a/app/models/account/loan.rb b/app/models/account/loan.rb
index 51b1d1ea..71c72d92 100644
--- a/app/models/account/loan.rb
+++ b/app/models/account/loan.rb
@@ -1,7 +1,3 @@
class Account::Loan < ApplicationRecord
include Accountable
-
- def type_name
- "Loan"
- end
end
diff --git a/app/models/account/other_asset.rb b/app/models/account/other_asset.rb
index 768ede91..b4f638da 100644
--- a/app/models/account/other_asset.rb
+++ b/app/models/account/other_asset.rb
@@ -1,7 +1,3 @@
class Account::OtherAsset < ApplicationRecord
include Accountable
-
- def type_name
- "Other Asset"
- end
end
diff --git a/app/models/account/other_liability.rb b/app/models/account/other_liability.rb
index d4e0958b..2467c08d 100644
--- a/app/models/account/other_liability.rb
+++ b/app/models/account/other_liability.rb
@@ -1,7 +1,3 @@
class Account::OtherLiability < ApplicationRecord
include Accountable
-
- def type_name
- "Other Liability"
- end
end
diff --git a/app/models/account/property.rb b/app/models/account/property.rb
index dfd19af0..0088dfcd 100644
--- a/app/models/account/property.rb
+++ b/app/models/account/property.rb
@@ -1,7 +1,3 @@
class Account::Property < ApplicationRecord
include Accountable
-
- def type_name
- "Real Estate"
- end
end
diff --git a/app/models/account/vehicle.rb b/app/models/account/vehicle.rb
index 174f95d3..fd640f2a 100644
--- a/app/models/account/vehicle.rb
+++ b/app/models/account/vehicle.rb
@@ -1,7 +1,3 @@
class Account::Vehicle < ApplicationRecord
include Accountable
-
- def type_name
- "Vehicle"
- end
end
diff --git a/app/views/accounts/_account_type.html.erb b/app/views/accounts/_account_type.html.erb
index 2c9ea3d8..746e1f72 100644
--- a/app/views/accounts/_account_type.html.erb
+++ b/app/views/accounts/_account_type.html.erb
@@ -4,6 +4,6 @@
<%= inline_svg_tag(icon, class: "#{text_color} stroke-current") %>
- <%= type.type_name %>
+ <%= type.model_name.human %>
<% end %>
diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb
index a0597914..ef727457 100644
--- a/app/views/accounts/index.html.erb
+++ b/app/views/accounts/index.html.erb
@@ -1,5 +1,5 @@
-
Cash
+<%= t('.title')%>
<%#= number_to_currency Current.family.cash_balance %>
<% Current.family.accounts.each do |account| %>
@@ -8,7 +8,7 @@
<%= account.name %>
- <%= account.accountable %>
+ <%= account.accountable.model_name.human %>
<%= humanized_money_with_symbol account.balance %>
diff --git a/app/views/accounts/new.html.erb b/app/views/accounts/new.html.erb
index db7aa8c8..58ba7ff9 100644
--- a/app/views/accounts/new.html.erb
+++ b/app/views/accounts/new.html.erb
@@ -1,4 +1,4 @@
-
Add an account
+<%= t('.title')%>
<% if params[:type].blank? || Account.accountable_types.include?("Account::#{params[:type]}") == false %>
@@ -16,7 +16,7 @@
<%= link_to new_account_path, class: "" do %>
<%= inline_svg_tag('icon-arrow-left.svg', class: 'text-gray-500 fill-current') %>
<% end %>
-
Enter <%= params[:type] %> account
+ <%= t('.enter_type_account', type: @account.accountable_class.model_name.human.downcase ) %>
<%= form_with model: @account, url: accounts_path, scope: :account, html: { class: "space-y-4" } do |f| %>
@@ -24,16 +24,17 @@
<%# Optional %>
-
- <%= f.text_field :name, placeholder: "Account name", required: 'required', class: "p-0 mt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100" %>
+ <%= f.label :name, class: 'block text-sm font-medium opacity-50 focus-within:opacity-100' %>
+ <%= f.text_field :name, placeholder: t('.account_name_placeholder'), required: 'required', class: "p-0 mt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100" %>
<%= render "accounts/#{permitted_accountable_partial(@account.accountable_type)}", f: f %>
-
+
+ <%= f.label :balance, class: 'block text-sm font-medium opacity-50 focus-within:opacity-100' %>
- <%= f.number_field :balance, placeholder: "$0.00", in: 0.00..100000000.00, step: :any, required: 'required', class: "p-0 mt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100" %>
+ <%= f.number_field :balance, placeholder: number_to_currency(0), in: 0.00..100000000.00, required: 'required', class: "p-0 mt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100" %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 53dcff9f..7dd16175 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -49,20 +49,20 @@
<%= link_to root_path, class: 'block hover:bg-gray-100 -ml-2 p-2 text-sm font-semibold text-gray-900 flex items-center rounded' do %>
<%= inline_svg_tag('icon-dashboard.svg', class: 'text-black stroke-current mr-2') %>
- Dashboard
+ <%= t('.dashboard') %>
<% end %>
- Accounts
- <%= link_to new_account_path, class: 'block hover:bg-gray-100 p-2 text-sm font-semibold text-gray-900 flex items-center rounded', title: "New account" do %>
+ <%= t('.accounts') %>
+ <%= link_to new_account_path, class: 'block hover:bg-gray-100 p-2 text-sm font-semibold text-gray-900 flex items-center rounded', title: t('.new_accoount') do %>
<%= inline_svg_tag('icon-add.svg', class: 'text-gray-500 fill-current') %>
<% end %>
-
Cash
+
<%= t('.cache') %>
<% Current.family.accounts.each do |account| %>
diff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erb
index 14379632..1510fedc 100644
--- a/app/views/layouts/auth.html.erb
+++ b/app/views/layouts/auth.html.erb
@@ -24,17 +24,17 @@
<%= render "shared/logo" %>
- <%= content_for?(:header_title) ? yield(:header_title).html_safe : "Your account" %>
+ <%= content_for?(:header_title) ? yield(:header_title).html_safe : t('.your_account') %>
<% if controller_name == "sessions" %>
-
- or <%= link_to "create an account", new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
-
+
+ <%= t('.or') %> <%= link_to t('.sign_up'), new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
+
<% elsif controller_name == "registrations" %>
-
- or <%= link_to "sign in to your account", new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
-
+
+ <%= t('.or') %> <%= link_to t('.sign_in'), new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
+
<% end %>
@@ -44,7 +44,7 @@
-
Privacy Policy • Terms of Service
+
<%= link_to t('.privacy_policy'), "/privacy", class: "font-medium text-gray-600 hover:text-gray-400 transition" %> • <%= link_to t('.terms_of_service'), "/terms", class: "font-medium text-gray-600 hover:text-gray-400 transition" %>
diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb
index 6a221feb..3698cafe 100644
--- a/app/views/pages/dashboard.html.erb
+++ b/app/views/pages/dashboard.html.erb
@@ -1 +1 @@
-Dashboard
+<%= t('.title')%>
diff --git a/app/views/password_mailer/password_reset.html.erb b/app/views/password_mailer/password_reset.html.erb
index 3eeb5439..c109d25f 100644
--- a/app/views/password_mailer/password_reset.html.erb
+++ b/app/views/password_mailer/password_reset.html.erb
@@ -1 +1 @@
-<%= link_to "Reset your password", edit_password_reset_url(token: params[:token]) %>
\ No newline at end of file
+<%= link_to t('.cta'), edit_password_reset_url(token: params[:token]) %>
diff --git a/app/views/password_resets/edit.html.erb b/app/views/password_resets/edit.html.erb
index 90a94474..ecf5745b 100644
--- a/app/views/password_resets/edit.html.erb
+++ b/app/views/password_resets/edit.html.erb
@@ -1,5 +1,5 @@
<%
- header_title "Reset password"
+ header_title t('.title')
%>
<%= form_with url: password_reset_path(token: params[:token]), html: {class: 'space-y-6'} do |form| %>
@@ -16,6 +16,6 @@
- <%= form.submit "Reset Password", class: 'flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
+ <%= form.submit t('.submit'), class: 'flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
<% end %>
diff --git a/app/views/password_resets/new.html.erb b/app/views/password_resets/new.html.erb
index 119f7464..21140123 100644
--- a/app/views/password_resets/new.html.erb
+++ b/app/views/password_resets/new.html.erb
@@ -1,5 +1,5 @@
<%
- header_title "Reset password"
+ header_title t('.title')
%>
<%= form_with url: password_reset_path, html: {class: 'space-y-6'} do |form| %>
@@ -11,6 +11,6 @@
- <%= form.submit "Reset password", class: 'flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
+ <%= form.submit t('.submit'), class: 'flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
<% end %>
diff --git a/app/views/passwords/edit.html.erb b/app/views/passwords/edit.html.erb
index 86b6cfc3..610d33bd 100644
--- a/app/views/passwords/edit.html.erb
+++ b/app/views/passwords/edit.html.erb
@@ -1,15 +1,15 @@
-Update Password
+<% t('.title')%>
<%= form_with model: Current.user, url: password_path do |form| %>
<%= auth_messages form %>
- <%= form.label :password_challenge, "Current Password" %>
+ <%= form.label :password_challenge, t('.password_challenge') %>
<%= form.password_field :password_challenge %>
- <%= form.label :password, "New Password" %>
+ <%= form.label :password, t('.password') %>
<%= form.password_field :password %>
@@ -19,7 +19,6 @@
- <%= form.submit 'Update Password' %>
+ <%= form.submit t('.submit') %>
<% end %>
-
diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb
index 37040b28..534b44ca 100644
--- a/app/views/registrations/new.html.erb
+++ b/app/views/registrations/new.html.erb
@@ -1,5 +1,5 @@
<%
- header_title "Create an account"
+ header_title t('.title')
%>
<%= form_with model: @user, url: registration_path, html: {class: 'space-y-6'} do |form| %>
@@ -11,23 +11,23 @@
- <%= form.label :password, "Password", class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
+ <%= form.label :password, class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
<%= form.password_field :password, autocomplete: "new-password", required: 'required', class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
- <%= form.label :password_confirmation, "Password confirmation", class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
+ <%= form.label :password_confirmation, class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
<%= form.password_field :password_confirmation, autocomplete: "new-password", required: 'required', class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
<% if hosted_app? %>
- <%= form.label :invite_code, "Invite code", class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
+ <%= form.label :invite_code, class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
<%= form.password_field :invite_code, required: 'required', class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
<% end %>
- <%= form.submit "Continue", class: 'cursor-pointer flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
+ <%= form.submit class: 'cursor-pointer flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
<% end %>
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb
index 03d1b464..4c66dd16 100644
--- a/app/views/sessions/new.html.erb
+++ b/app/views/sessions/new.html.erb
@@ -1,25 +1,25 @@
<%
- header_title "Sign in to your account"
+ header_title t('.title')
%>
<%= form_with url: session_path, html: {class: 'space-y-6'} do |form| %>
<%= auth_messages form %>
- <%= form.label :email, "Email address", class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
- <%= form.email_field :email, autofocus: false, autocomplete: "email", required: 'required', placeholder: 'you@example.com', class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
+ <%= form.label :email, t('.email'), class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
+ <%= form.email_field :email, autofocus: false, autocomplete: "email", required: 'required', placeholder: t('.email_placeholder'), class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
- <%= form.label :password, "Password", class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
+ <%= form.label :password, class: 'p-4 pb-0 block text-sm font-medium text-gray-700' %>
<%= form.password_field :password, required: 'required', class: 'p-4 pt-1 bg-transparent border-none opacity-50 focus:outline-none focus:ring-0 focus-within:opacity-100 w-full' %>
- <%= form.submit "Log in", class: 'cursor-pointer flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
+ <%= form.submit t('.submit'), class: 'cursor-pointer flex justify-center w-full px-4 py-3 text-sm font-medium text-white bg-black rounded-xl hover:bg-black focus:outline-none focus:ring-2 focus:ring-gray-200 shadow' %>
<% end %>
-
Forgot your password? <%= link_to "Reset it", new_password_reset_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
+
<%= t('.forgot_password') %> <%= link_to t('.reset_password'), new_password_reset_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>
diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml
index c29ef601..be226048 100644
--- a/config/i18n-tasks.yml
+++ b/config/i18n-tasks.yml
@@ -1,9 +1,9 @@
base_locale: en
data:
read:
- - config/locales/%{locale}.yml
+ - config/locales/**/*%{locale}.yml
write:
- - config/locales/%{locale}.yml
+ - config/locales/**/*%{locale}.yml
router: conservative_router
search:
paths:
@@ -14,7 +14,7 @@ search:
- app/mailers
- app/presenters
- app/views
- strict: true
+ strict: false
## Files or `File.fnmatch` patterns to exclude from search. Some files are always excluded regardless of this setting:
## *.jpg *.jpeg *.png *.gif *.svg *.ico *.eot *.otf *.ttf *.woff *.woff2 *.pdf *.css *.sass *.scss *.less
## *.yml *.json *.zip *.tar.gz *.swf *.flv *.mp3 *.wav *.flac *.webm *.mp4 *.ogg *.opus *.webp *.map *.xlsx
@@ -23,3 +23,8 @@ search:
- app/assets/fonts
- app/assets/videos
- app/assets/builds
+ignore_unused:
+ - 'activerecord.attributes.*' # i18n-tasks does not detect these on forms, forms validations (https://github.com/glebm/i18n-tasks/blob/0b4b483c82664f26c5696fb0f6aa1297356e4683/templates/config/i18n-tasks.yml#L146)
+ - 'activerecord.models.account*' # i18n-tasks does not detect use in dynamic model names (e.g. object.model_name.human)
+ - 'helpers.submit.*' # i18n-tasks does not detect used at forms
+ - 'helpers.label.*' # i18n-tasks does not detect used at forms
diff --git a/config/locales/en.yml b/config/locales/en.yml
deleted file mode 100644
index 527b4de8..00000000
--- a/config/locales/en.yml
+++ /dev/null
@@ -1,22 +0,0 @@
----
-en:
- password_resets:
- create:
- requested: If an account with that email exists, we have sent a link to reset
- your password.
- update:
- invalid_token: Invalid token.
- success: Your password has been reset.
- passwords:
- update:
- success: Your password has been updated successfully.
- registrations:
- create:
- failure: Invalid input, please try again.
- invalid_invite_code: Invalid invite code, please try again.
- success: You have signed up successfully.
- sessions:
- create:
- invalid_credentials: Invalid email or password.
- destroy:
- logout_successful: You have signed out successfully.
diff --git a/config/locales/models/account/en.yml b/config/locales/models/account/en.yml
new file mode 100644
index 00000000..4da21b3e
--- /dev/null
+++ b/config/locales/models/account/en.yml
@@ -0,0 +1,21 @@
+---
+en:
+ activerecord:
+ attributes:
+ account:
+ balance: Balance
+ currency: Currency
+ family: Family
+ family_id: Family
+ name: Name
+ subtype: Subtype
+ models:
+ account: Account
+ account/credit: Credit Card
+ account/depository: Bank Accounts
+ account/investiment: Investments
+ account/loan: Loan
+ account/other_asset: Other Asset
+ account/other_liability: Other Liability
+ account/property: Real Estate
+ account/vehicle: Vehicle
diff --git a/config/locales/models/user/en.yml b/config/locales/models/user/en.yml
new file mode 100644
index 00000000..8fb5de87
--- /dev/null
+++ b/config/locales/models/user/en.yml
@@ -0,0 +1,12 @@
+---
+en:
+ activerecord:
+ attributes:
+ user:
+ email: Email
+ family: Family
+ family_id: Family
+ first_name: First Name
+ last_name: Last Name
+ password: Password
+ password_confirmation: Password Confirmation
diff --git a/config/locales/views/account/en.yml b/config/locales/views/account/en.yml
new file mode 100644
index 00000000..7b3f9c2c
--- /dev/null
+++ b/config/locales/views/account/en.yml
@@ -0,0 +1,11 @@
+---
+en:
+ accounts:
+ create:
+ success: New account created successfully
+ index:
+ title: Cash
+ new:
+ account_name_placeholder: Account name
+ enter_type_account: Enter %{type} account
+ title: Add an account
diff --git a/config/locales/views/layout/en.yml b/config/locales/views/layout/en.yml
new file mode 100644
index 00000000..9836638e
--- /dev/null
+++ b/config/locales/views/layout/en.yml
@@ -0,0 +1,15 @@
+---
+en:
+ layouts:
+ application:
+ accounts: Accounts
+ cache: Cache
+ dashboard: Dashboard
+ new_accoount: New Account
+ auth:
+ or: or
+ privacy_policy: Privacy Policy
+ sign_in: sign in to your account
+ sign_up: create an account
+ terms_of_service: Terms of Service
+ your_account: Your account
diff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.yml
new file mode 100644
index 00000000..18851e23
--- /dev/null
+++ b/config/locales/views/pages/en.yml
@@ -0,0 +1,5 @@
+---
+en:
+ pages:
+ dashboard:
+ title: Dashboard
diff --git a/config/locales/views/password_mailer/en.yml b/config/locales/views/password_mailer/en.yml
new file mode 100644
index 00000000..d785c664
--- /dev/null
+++ b/config/locales/views/password_mailer/en.yml
@@ -0,0 +1,5 @@
+---
+en:
+ password_mailer:
+ password_reset:
+ cta: Reset your password
diff --git a/config/locales/views/password_resets/en.yml b/config/locales/views/password_resets/en.yml
new file mode 100644
index 00000000..33fa060d
--- /dev/null
+++ b/config/locales/views/password_resets/en.yml
@@ -0,0 +1,15 @@
+---
+en:
+ password_resets:
+ create:
+ requested: If an account with that email exists, we have sent a link to reset
+ your password.
+ edit:
+ submit: Update Password
+ title: Reset password
+ new:
+ submit: Reset password
+ title: Reset password
+ update:
+ invalid_token: Invalid token.
+ success: Your password has been reset.
diff --git a/config/locales/views/passwords/en.yml b/config/locales/views/passwords/en.yml
new file mode 100644
index 00000000..50c2965a
--- /dev/null
+++ b/config/locales/views/passwords/en.yml
@@ -0,0 +1,10 @@
+---
+en:
+ passwords:
+ edit:
+ password: New Password
+ password_challenge: Current Password
+ submit: Reset Password
+ title: Update Password
+ update:
+ success: Your password has been reset.
diff --git a/config/locales/views/registrations/en.yml b/config/locales/views/registrations/en.yml
new file mode 100644
index 00000000..a3ea5b52
--- /dev/null
+++ b/config/locales/views/registrations/en.yml
@@ -0,0 +1,16 @@
+---
+en:
+ helpers:
+ label:
+ user:
+ invite_code: Invite Code
+ submit:
+ user:
+ create: Continue
+ registrations:
+ create:
+ failure: Invalid input, please try again.
+ invalid_invite_code: Invalid invite code, please try again.
+ success: You have signed up successfully.
+ new:
+ title: Create an account
diff --git a/config/locales/views/sessions/en.yml b/config/locales/views/sessions/en.yml
new file mode 100644
index 00000000..9853e089
--- /dev/null
+++ b/config/locales/views/sessions/en.yml
@@ -0,0 +1,14 @@
+---
+en:
+ sessions:
+ create:
+ invalid_credentials: Invalid email or password.
+ destroy:
+ logout_successful: You have signed out successfully.
+ new:
+ email: Email address
+ email_placeholder: you@example.com
+ forgot_password: Forgot your password?
+ reset_password: Reset it
+ submit: Log in
+ title: Sign in to your account