mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Start I18n Internationalization setup (#276)
* start internationalization_setup * add passwords views translations * add account views translations * fix translations * temporary disable i18n used key
This commit is contained in:
parent
64c8774867
commit
c8a659694d
33 changed files with 177 additions and 102 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue