Create documentation for localisation - passing translations via data attributes #2307
Labels
documentation
User requests new documentation or improvements to existing documentation
javascript
Pull requests that update Javascript code
localisation
Milestone
What
Documentation is needed for the work which allows users to override hardcoded strings in our component JavaScript
There are two ways for users of GOV.UK Frontend to pass translations - via data-attributes or via JavaScript. The first approach (data attributes) will be documented in the Design System website, as the "primary" option for translating component JavaScript. This is what this ticket covers.
The second approach (passing translations via JavaScript) is more technical and may be less commonly used - we should document this approach in the Frontend Docs site. There is a separate card for this work
Why
Who needs to work on this
Tech Writer; Content; Developer
Who needs to review this
Tech Writer; Content; Developer
Done when
The text was updated successfully, but these errors were encountered: