From 1fd23b4e156a089e710c7f880de52d842adac821 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 27 Jan 2023 17:25:14 +0000 Subject: [PATCH] feat: add currency attribute to title-text --- app/models/form/sales/pages/buyer1_income_value_check.rb | 3 ++- config/locales/en.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/form/sales/pages/buyer1_income_value_check.rb b/app/models/form/sales/pages/buyer1_income_value_check.rb index 818f34f37..b78237bc6 100644 --- a/app/models/form/sales/pages/buyer1_income_value_check.rb +++ b/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, }, ], } diff --git a/config/locales/en.yml b/config/locales/en.yml index 6407a4cc4..574d9a4a2 100644 --- a/config/locales/en.yml +++ b/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}"