0

I want to have some type of script that will check if all the formattedMessage I have in my React components are consistent with the data I have in my en-US.json locale.

I'm using react-intl, and in my React components I use both the FormattedMessage component, as well as the formatMessage function. The FormattedMessage component is imported from react-intl, and the formatMessage function is a function from the useIntl object, which is imported from react-intl.

What is a good way to proceed with this analysis and comparison? I want to ensure that all the keys and values that exist in these FormattedMessages, match the keys and values in my en-US.json locale. This script will be run as part of my Github Workflow.

I don't know how to get started on this.

Emily
  • 33
  • 3

0 Answers0