Skip to content

Commit bb1a843

Browse files
committed
Add Welsh to available languages
Add Welsh to available languages when saving translation. Without this, the form won't by available in Welsh, FormDocuments won't be created and the runner won't know to offer a link to the Welsh version.
1 parent 6c5a8c0 commit bb1a843

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/input_objects/forms/welsh_translation_input.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def submit
4141
end
4242

4343
form.welsh_completed = mark_complete
44+
45+
form.available_languages = %i[en cy]
46+
4447
form.save_draft!
4548
end
4649

0 commit comments

Comments
 (0)