alphagov / govuk_publishing_components

A gem to document and distribute frontend components for GOV.UK applications
https://components.publishing.service.gov.uk
MIT License
66 stars 20 forks source link

Cookies banner component isn't translatable #1930

Closed maxgds closed 1 year ago

maxgds commented 3 years ago

We should update the strings in the cookies banner to enable them to be translated. This would involve updating the text in the erb file and passing through the right strings to be used in the js when a user accepts or rejects cookies.

andysellick commented 2 years ago

Some non-translated text currently appears in the JavaScript https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/javascripts/govuk_publishing_components/components/cookie-banner.js#L79

However we don't currently have translations available for this text.