I've been trying to learn and understand react-intl
library and I encountered babel-plugin-react-intl
library. There is a description in the library's page like that;
Extracts string messages for translation from modules that use React Intl.
I wonder that which string messages would be extracted?
Also, what are the benefits of extracted messages?
I am using babel-plugin-react-intl to automatically extract all the labels in my React application. I'd point as main advantages the following two:
Extra: I am not using, but, if you want to force developers to add a context description for each label, this plugin also has an option to force this behavior so that, if the developer forgets it, an error is thrown on webpack.