formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

babel-plugin-react-intl skipping .tsx files #533

Closed aminosman closed 4 years ago

aminosman commented 4 years ago

Which package? babel-plugin-react-intl

Describe the bug Messages in .tsx files are not being extracted

To Reproduce Create a .tsx file with some messages and run babel

Callenowy commented 4 years ago

Hey @aminosman, I had the same issue and found a workaround. Check out these posts: https://mikebridge.github.io/post/typescript-i18n-react-intl/ https://medium.com/@yehiasaleh/internationalization-localization-using-react-intl-typescript-1e7cfccd34d7

longlho commented 4 years ago

do you have a repro link?