1
0
Fork 0
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:
Ricardo Siqueira de Oliveira Leite 2024-02-06 14:58:17 -03:00 committed by GitHub
parent 64c8774867
commit c8a659694d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 177 additions and 102 deletions

View file

@ -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