You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds ability to pass translation strings into the accordion component, using the Nunjucks macro.
Needs to work with the i18n logic added in #2801. There will need to be some kind of logic to look up the data translation attributes set on a component and return them as an object
Why
So users can translate the hardcoded strings in our accordion JS component
Passing translations via the Nunjucks macro enables them to do this without having to understand where different strings are (e.g: Nunjucks vs JavaScript) as it’s the same interface for both.
vanitabarrett
changed the title
Add ability to translate hardcoded strings in accordion component JavaScript
Add ability to pass translation strings to accordion component JS via JavaScript
Aug 17, 2022
vanitabarrett
changed the title
Add ability to pass translation strings to accordion component JS via JavaScript
Add ability to pass translation strings to accordion component JS
Aug 17, 2022
vanitabarrett
changed the title
Add ability to pass translation strings to accordion component JS
Add ability to pass translation strings to accordion component via data-attributes
Aug 22, 2022
What
Adds ability to pass translation strings into the accordion component, using the Nunjucks macro.
Needs to work with the i18n logic added in #2801. There will need to be some kind of logic to look up the data translation attributes set on a component and return them as an object
Why
So users can translate the hardcoded strings in our accordion JS component
Passing translations via the Nunjucks macro enables them to do this without having to understand where different strings are (e.g: Nunjucks vs JavaScript) as it’s the same interface for both.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
The text was updated successfully, but these errors were encountered: