Browse Source

feat: add currency attribute to title-text

CLDC-1790-sales-validation-content-updates
natdeanlewissoftwire 2 years ago
parent
commit
1fd23b4e15
  1. 3
      app/models/form/sales/pages/buyer1_income_value_check.rb
  2. 2
      config/locales/en.yml

3
app/models/form/sales/pages/buyer1_income_value_check.rb

@ -7,7 +7,7 @@ class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
},
]
@title_text = {
"translation" => "soft_validations.net_income.below_soft_min",
"translation" => "soft_validations.net_income.under_soft_min",
"arguments" => [
{
"key" => "income1",
@ -18,6 +18,7 @@ class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
"key" => "allowed_income_soft_min",
"label" => false,
"i18n_template" => "soft_min",
"currency" => true,
},
],
}

2
config/locales/en.yml

@ -434,7 +434,7 @@ en:
message: "Net income is lower than expected based on the lead tenant’s working situation. Are you sure this is correct?"
in_soft_max_range:
message: "Net income is higher than expected based on the lead tenant’s working situation. Are you sure this is correct?"
below_soft_min: "You said income was %{income1}, which is below this working situation's minimum (%{soft_min})"
under_soft_min: "You said income was %{income1}, which is below this working situation's minimum (%{soft_min})"
rent:
min:
title_text: "You told us the rent is %{brent}"

Loading…
Cancel
Save