Skip to content

Commit

Permalink
[TAN-812] Added i18n for other field label
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesspeake committed Jan 25, 2024
1 parent 8f09f4a commit 4a8be09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion back/app/models/custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ def other_option_text_field
CustomField.new(
key: other_field_key,
input_type: 'text',
title_multiloc: { 'en' => 'Type your answer' }, # TODO: JS - Get from i18n
title_multiloc: MultilocService.new.i18n_to_multiloc(
'custom_fields.ideas.other.title',
locales: CL2_SUPPORTED_LOCALES
),
required: true,
enabled: true
)
Expand Down
2 changes: 2 additions & 0 deletions back/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ en:
section3:
title: Details
description:
other:
title: Type your answer
custom_forms:
categories:
main_content:
Expand Down
2 changes: 2 additions & 0 deletions back/spec/fixtures/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ en:
section3:
title: Details
description:
other:
title: Type your answer
custom_forms:
categories:
main_content:
Expand Down

0 comments on commit 4a8be09

Please sign in to comment.