-
- Downloads
Localize library tags
* convert all tags to have a `tag` field corresponding to the query parameter, and `intlLabel` field that defines the title message for `FormattedMessage` * define all the tag messages in a shared file so they can be included in multiple places. * convert the `TagButton` to use `tag` for the `onclick` handler value, and localize `intlLabel` for the title. In the library I’ve continued to use `tag.toLowercase()` even though all the tags are currently defined as lowercase. It’s safer, but currently not strictly needed.
Showing
- src/components/library/library.jsx 11 additions, 6 deletionssrc/components/library/library.jsx
- src/components/tag-button/tag-button.jsx 10 additions, 6 deletionssrc/components/tag-button/tag-button.jsx
- src/containers/tag-button.jsx 2 additions, 6 deletionssrc/containers/tag-button.jsx
- src/lib/libraries/backdrop-tags.js 9 additions, 8 deletionssrc/lib/libraries/backdrop-tags.js
- src/lib/libraries/sound-tags.js 10 additions, 9 deletionssrc/lib/libraries/sound-tags.js
- src/lib/libraries/sprite-tags.js 9 additions, 8 deletionssrc/lib/libraries/sprite-tags.js
- src/lib/libraries/tag-messages.js 104 additions, 0 deletionssrc/lib/libraries/tag-messages.js
Loading
Please register or sign in to comment