{"repo":"akameco/babel-plugin-react-intl-auto","free":true,"listed":false,"github":"https://github.com/akameco/babel-plugin-react-intl-auto","clone":"git clone https://github.com/akameco/babel-plugin-react-intl-auto.git","description":"i18n for the component age. Auto management react-intl ID.","language":"TypeScript","stars":209,"topics":["i18n","react","react-intl","component","auto","babel","babel-plugin"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"babel-plugin-react-intl-auto ⚠️ DEPRECATED - This plugin is deprecated. React Intl has evolved into FormatJS which now includes automatic ID generation out of the box. For new projects, we recommend using FormatJS directly. i18n for the component age. Auto management react-intl ID. React Intl is awesome. But, Global ID management is difficult and confusing. Many projects, like react-boilerplate, give the ID to the name of the component as a prefix. But it is redundant and troublesome. This babel-plugin releases you from cumbersome ID management. Based on the file path, this automatically generates a prefixed id. Also, we strongly encourage you to use extract-react-intl-messages. You can generate json automatically. Goodbye, global ID!! Before After With babel-plugin-react-intl-auto. See examples. With extract-react-intl-messages Example usage with extract-react-intl-messages. en.json Install npm yarn Usage .babelrc with injectIntl Input: ↓ ↓ ↓ Output: with useIntl Input: ↓ ↓ ↓ Output: Options removePrefix remove prefix. Type: string boolean regexp Default: '' if removePrefix is true , no file path prefix is included in the id. Example (src/components/App/messages.js) when removePrefix is \"src\" when removePrefix is \"src.components\" when removePrefix is true filebase Type: boolean Default: false if filebase is true , generate id with filename. moduleSourceName Type: string Default: react-intl if set, enables to use custom module as a source for defineMessages etc. https://githu","default_branch":null,"files":null,"tree":[],"storefront":"/r/akameco","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akameco/babel-plugin-react-intl-auto/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}