Replies: 1 comment 1 reply
-
@javifm86 were you able to figure it out? Iβm trying to do something similar |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project created with create-react-app with typescript. I have been struggling with the best way to organice my messages. This is my approach:
/messages/en.json
.defineMessages
:messages.ts
index.tsx
FormattedMessage
component.App.tsx
I am extracting and compiling messages with this npm script:
The problem is that I still getting this warning in console:
Is there anything wrong with my approach? I think the warning should disappear, but I am missing something, obviously.
I am looking at babel-plugin and ts-transformer, but I think I should extend the config in some way, because create-react-app doesn't allow it without ejecting.
Thanks for your time. Kind regards.
Beta Was this translation helpful? Give feedback.
All reactions