Skip to content

Commit

Permalink
Add localised string for back buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kieo-ch committed Feb 20, 2025
1 parent b98e935 commit dfe090c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions locales/cy/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"global_banner_help_improve": " yn ein helpu i'w wella.",
"global_confirm_continue_button": "Cadarnhau a parhau",
"global_save_continue_button": "Cadw a parhau",
"global_continue_button": "Parhau"
}
"global_continue_button": "Parhau",
"global_back_link": "Yn ôl"
}
5 changes: 3 additions & 2 deletions locales/en/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"global_banner_help_improve": " will help us to improve it.",
"global_confirm_continue_button": "Confirm and continue",
"global_save_continue_button": "Save and continue",
"global_continue_button": "Continue"
}
"global_continue_button": "Continue",
"global_back_link": "Back"
}
2 changes: 1 addition & 1 deletion src/views/layouts/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% endif %}

{% if backURL %}
<a href="{{ backURL }}" class="govuk-back-link" data-event-id="back-link">Back</a>
<a href="{{ backURL }}" class="govuk-back-link" data-event-id="back-link">{{ i18n.global_back_link }}</a>
{% endif %}

{% include "locales-banner.njk" %}
Expand Down

0 comments on commit dfe090c

Please sign in to comment.