The personal finance app for everyone
Start I18n Internationalization setup (#276)
Ricardo Siqueira de Oliveira Leitec8a659694d5c
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rbindex 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.newelse- Account.new(accountable_type: "Account::#{params[:type]}")+ Account.new(accountable_type: "Account::#{params[:type]}", balance: nil)endelsehead :not_found@@ -21,7 +21,7 @@ class AccountsController < ApplicationController@account.accountable = account_params[:accountable_type].constantize.newif @account.save- redirect_to accounts_path, notice: "New account created successfully"+ redirect_to accounts_path, notice: t(".success")elserender "new", status: :unprocessable_entityenddiff --git a/app/models/account/credit.rb b/app/models/account/credit.rbindex fc3733ec..06e91afc 100644--- a/app/models/account/credit.rb+++ b/app/models/account/credit.rb@@ -1,7 +1,3 @@class Account::Credit < ApplicationRecordinclude Accountable-- def type_name- "Credit Card"- endenddiff --git a/app/models/account/depository.rb b/app/models/account/depository.rbindex d40e58d3..b7d4cb30 100644--- a/app/models/account/depository.rb+++ b/app/models/account/depository.rb@@ -1,7 +1,3 @@class Account::Depository < ApplicationRecordinclude Accountable-- def type_name- "Bank Accounts"- endenddiff --git a/app/models/account/investment.rb b/app/models/account/investment.rbindex 32029c3a..57bdfcf8 100644--- a/app/models/account/investment.rb+++ b/app/models/account/investment.rb@@ -1,7 +1,3 @@class Account::Investment < ApplicationRecordinclude Accountable-- def type_name- "Investments"- endenddiff --git a/app/models/account/loan.rb b/app/models/account/loan.rbindex 51b1d1ea..71c72d92 100644--- a/app/models/account/loan.rb+++ b/app/models/account/loan.rb@@ -1,7 +1,3 @@class Account::Loan < ApplicationRecordinclude Accountable-- def type_name- "Loan"- endenddiff --git a/app/models/account/other_asset.rb b/app/models/account/other_asset.rbindex 768ede91..b4f638da 100644--- a/app/models/account/other_asset.rb+++ b/app/models/account/other_asset.rb@@ -1,7 +1,3 @@class Account::OtherAsset < ApplicationRecordinclude Accountable-- def type_name- "Other Asset"- endenddiff --git a/app/models/account/other_liability.rb b/app/models/account/other_liability.rbindex d4e0958b..2467c08d 100644--- a/app/models/account/other_liability.rb+++ b/app/models/account/other_liability.rb@@ -1,7 +1,3 @@class Account::OtherLiability < ApplicationRecordinclude Accountable-- def type_name- "Other Liability"- endenddiff --git a/app/models/account/property.rb b/app/models/account/property.rbindex dfd19af0..0088dfcd 100644--- a/app/models/account/property.rb+++ b/app/models/account/property.rb@@ -1,7 +1,3 @@class Account::Property < ApplicationRecordinclude Accountable-- def type_name- "Real Estate"- endenddiff --git a/app/models/account/vehicle.rb b/app/models/account/vehicle.rbindex 174f95d3..fd640f2a 100644--- a/app/models/account/vehicle.rb+++ b/app/models/account/vehicle.rb@@ -1,7 +1,3 @@class Account::Vehicle < ApplicationRecordinclude Accountable-- def type_name- "Vehicle"- endenddiff --git a/app/views/accounts/_account_type.html.erb b/app/views/accounts/_account_type.html.erbindex 2c9ea3d8..746e1f72 100644--- a/app/views/accounts/_account_type.html.erb+++ b/app/views/accounts/_account_type.html.erb@@ -4,6 +4,6 @@<span class="flex w-10 h-10 shrink-0 grow-0 items-center justify-center rounded-xl <%= bg_color %> mb-2"><%= inline_svg_tag(icon, class: "#{text_color} stroke-current") %></span>- <%= type.type_name %>+ <%= type.model_name.human %><% end %></div>diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erbindex a0597914..ef727457 100644--- a/app/views/accounts/index.html.erb+++ b/app/views/accounts/index.html.erb@@ -1,5 +1,5 @@-<h2 class="text-2xl font-semibold font-display">Cash</h2>+<h2 class="text-2xl font-semibold font-display"><%= t('.title')%></h2><h3 class="mt-1 mb-4 text-sm text-gray-500"><%#= number_to_currency Current.family.cash_balance %></h3><% Current.family.accounts.each do |account| %>@@ -8,7 +8,7 @@<%= account.name %></div><div class="flex items-center text-sm">- <%= account.accountable %>+ <%= account.accountable.model_name.human %></div><p class="text-sm text-right"><span class="block mb-1"><%= humanized_money_with_symbol account.balance %></span>diff --git a/app/views/accounts/new.html.erb b/app/views/accounts/new.html.erbindex db7aa8c8..58ba7ff9 100644--- a/app/views/accounts/new.html.erb+++ b/app/views/accounts/new.html.erb@@ -1,4 +1,4 @@-<h1 class="text-3xl font-semibold font-display">Add an account</h1>+<h1 class="text-3xl font-semibold font-display"><%= t('.title')%></h1><% if params[:type].blank? || Account.accountable_types.include?("Account::#{params[:type]}") == false %><div class="grid grid-cols-2 gap-4 mt-8 text-sm sm:grid-cols-3 md:grid-cols-4">@@ -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 %>- <h2 class="text-2xl font-semibold font-display">Enter <%= params[:type] %> account</h2>+ <h2 class="text-2xl font-semibold font-display"><%= t('.enter_type_account', type: @account.accountable_class.model_name.human.downcase ) %></h2></div><%= form_with model: @account, url: accounts_path, scope: :account, html: { class: "space-y-4" } do |f| %>@@ -24,16 +24,17 @@<div class="relative p-4 border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100"><%# <span class="absolute px-2 py-1 text-xs font-medium text-gray-400 uppercase bg-gray-200 rounded-full opacity-50 right-3">Optional</span> %>- <label for="account_name" class="block text-sm font-medium opacity-50 focus-within:opacity-100">Name</label>- <%= 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" %></div><%= render "accounts/#{permitted_accountable_partial(@account.accountable_type)}", f: f %><div class="relative p-4 border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">- <label for="account_balance" class="block text-sm font-medium opacity-50 focus-within:opacity-100">Balance</label>++ <%= f.label :balance, class: 'block text-sm font-medium opacity-50 focus-within:opacity-100' %><div class="flex">- <%= 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" %></div></div>diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erbindex 53dcff9f..7dd16175 100644--- a/app/views/layouts/application.html.erb+++ b/app/views/layouts/application.html.erb@@ -49,20 +49,20 @@<li><%= 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 %></li></ul></nav><div class="flex flex-col mt-6"><div class="flex items-center justify-between">- <span class="text-xs">Accounts</span>- <%= 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 %>+ <span class="text-xs"><%= t('.accounts') %></span>+ <%= 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 %></div><div>- <h2 class="text-sm font-semibold font-display">Cash</h2>+ <h2 class="text-sm font-semibold font-display"><%= t('.cache') %></h2><% Current.family.accounts.each do |account| %><div class="flex items-center justify-between py-2">diff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erbindex 14379632..1510fedc 100644--- a/app/views/layouts/auth.html.erb+++ b/app/views/layouts/auth.html.erb@@ -24,17 +24,17 @@<%= render "shared/logo" %><h2 class="mt-6 text-3xl font-semibold tracking-tight text-center font-display">- <%= content_for?(:header_title) ? yield(:header_title).html_safe : "Your account" %>+ <%= content_for?(:header_title) ? yield(:header_title).html_safe : t('.your_account') %></h2><% if controller_name == "sessions" %>- <p class="mt-2 text-sm text-center text-gray-600">- or <%= link_to "create an account", new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>- </p>+ <p class="mt-2 text-sm text-center text-gray-600">+ <%= t('.or') %> <%= link_to t('.sign_up'), new_registration_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>+ </p><% elsif controller_name == "registrations" %>- <p class="mt-2 text-sm text-center text-gray-600">- or <%= link_to "sign in to your account", new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>- </p>+ <p class="mt-2 text-sm text-center text-gray-600">+ <%= t('.or') %> <%= link_to t('.sign_in'), new_session_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %>+ </p><% end %></div>@@ -44,7 +44,7 @@</div><div class="p-8 mt-2 text-center">- <p class="mt-6 text-sm text-black"><a href="/privacy" class="font-medium text-gray-600 hover:text-gray-400 transition">Privacy Policy</a> • <a href="/terms" class="font-medium text-gray-600 hover:text-gray-400 transition">Terms of Service</a></p>+ <p class="mt-6 text-sm text-black"><%= 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" %></p></div></div>diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erbindex 6a221feb..3698cafe 100644--- a/app/views/pages/dashboard.html.erb+++ b/app/views/pages/dashboard.html.erb@@ -1 +1 @@-<h1 class="text-3xl font-semibold font-display">Dashboard</h1>+<h1 class="text-3xl font-semibold font-display"><%= t('.title')%></h1>diff --git a/app/views/password_mailer/password_reset.html.erb b/app/views/password_mailer/password_reset.html.erbindex 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.erbindex 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 @@</div><div>- <%= 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' %></div><% end %>diff --git a/app/views/password_resets/new.html.erb b/app/views/password_resets/new.html.erbindex 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 @@</div><div>- <%= 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' %></div><% end %>diff --git a/app/views/passwords/edit.html.erb b/app/views/passwords/edit.html.erbindex 86b6cfc3..610d33bd 100644--- a/app/views/passwords/edit.html.erb+++ b/app/views/passwords/edit.html.erb@@ -1,15 +1,15 @@-<h1>Update Password</h1>+<h1><% t('.title')%></h1><%= form_with model: Current.user, url: password_path do |form| %><%= auth_messages form %><div>- <%= form.label :password_challenge, "Current Password" %>+ <%= form.label :password_challenge, t('.password_challenge') %><%= form.password_field :password_challenge %></div><div>- <%= form.label :password, "New Password" %>+ <%= form.label :password, t('.password') %><%= form.password_field :password %></div>@@ -19,7 +19,6 @@</div><div>- <%= form.submit 'Update Password' %>+ <%= form.submit t('.submit') %></div><% end %>-diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erbindex 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 @@</div><div class="relative border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">- <%= 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' %></div><div class="relative border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">- <%= 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' %></div><% if hosted_app? %><div class="bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100 relative border border-gray-100">- <%= 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' %></div><% end %><div>- <%= 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' %></div><% end %>diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erbindex 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 %><div class="relative border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">- <%= 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: '[email protected]', 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' %></div><div class="relative border border-gray-100 bg-offwhite rounded-xl focus-within:bg-white focus-within:shadow focus-within:opacity-100">- <%= 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' %></div><div>- <%= 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' %></div><% end %><div class="mt-6 text-center">- <p class="text-sm text-gray-600">Forgot your password? <%= link_to "Reset it", new_password_reset_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %></p>+ <p class="text-sm text-gray-600"><%= t('.forgot_password') %> <%= link_to t('.reset_password'), new_password_reset_path, class: 'font-medium text-gray-600 hover:text-gray-400 transition' %></p></div>diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.ymlindex c29ef601..be226048 100644--- a/config/i18n-tasks.yml+++ b/config/i18n-tasks.yml@@ -1,9 +1,9 @@base_locale: endata:read:- - config/locales/%{locale}.yml+ - config/locales/**/*%{locale}.ymlwrite:- - config/locales/%{locale}.yml+ - config/locales/**/*%{locale}.ymlrouter: conservative_routersearch: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 formsdiff --git a/config/locales/en.yml b/config/locales/en.ymldeleted file mode 100644index 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.ymlnew file mode 100644index 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: Vehiclediff --git a/config/locales/models/user/en.yml b/config/locales/models/user/en.ymlnew file mode 100644index 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 Confirmationdiff --git a/config/locales/views/account/en.yml b/config/locales/views/account/en.ymlnew file mode 100644index 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 accountdiff --git a/config/locales/views/layout/en.yml b/config/locales/views/layout/en.ymlnew file mode 100644index 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 accountdiff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.ymlnew file mode 100644index 00000000..18851e23--- /dev/null+++ b/config/locales/views/pages/en.yml@@ -0,0 +1,5 @@+---+en:+ pages:+ dashboard:+ title: Dashboarddiff --git a/config/locales/views/password_mailer/en.yml b/config/locales/views/password_mailer/en.ymlnew file mode 100644index 00000000..d785c664--- /dev/null+++ b/config/locales/views/password_mailer/en.yml@@ -0,0 +1,5 @@+---+en:+ password_mailer:+ password_reset:+ cta: Reset your passworddiff --git a/config/locales/views/password_resets/en.yml b/config/locales/views/password_resets/en.ymlnew file mode 100644index 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.ymlnew file mode 100644index 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.ymlnew file mode 100644index 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 accountdiff --git a/config/locales/views/sessions/en.yml b/config/locales/views/sessions/en.ymlnew file mode 100644index 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: [email protected]+ forgot_password: Forgot your password?+ reset_password: Reset it+ submit: Log in+ title: Sign in to your account