RockefellerArchiveCenter/dimes

Text strings are replacing UI elements

Closed this issue · 2 comments

Describe the bug

View Online and Download buttons are being replaced with text strings in the UI on the /object page in record details and on the /list page.

To reproduce

Steps to reproduce the behavior:

  1. Go to dimes.rockarch.org/objects/DQCoJGgCRXHnsPjKGiaCsZ
  2. See buttons in records details
  3. Add this item to your list
  4. Go to /list page
  5. See that "View Online" button is replaced with string of text

Error message or screenshots

image

Should be:
image

And on My List page:
image

Should be:
image

Additional context

This seems to be a bug related to the lingui translations, because those text strings are present in /src/locales/en/messages.js. However, I'm not seeing it in local development.

I'm also seeing this phenomenon in the footer:

image

Running yarn extract and yarn compile (which extracts and compiles messages using lingui) appears to have done the trick.

I think there are a couple of things we should do as a followup:

  • Update the readme with a bit more information about when and how to extract and compile messages
  • Consider rolling this into git pre-commit hooks and/or our CI pipeline in general