react-scripts-intlayer
Version:
Integrate Intlayer with Create React App using custom React scripts for internationalization i18n and advanced Webpack configurations
84 lines (58 loc) • 3.55 kB
Markdown
<div align="center">
<a href="https://intlayer.org">
<img src="https://raw.githubusercontent.com/aymericzip/intlayer/572ae9c9acafb74307b81530c1931a8e98990aef/docs/assets/logo.png" width="500" alt="intlayer" />
</a>
</div>
<div align="center">
<a href="https://www.npmjs.com/package/react-scripts-intlayer">
<img alt="npm" src="https://img.shields.io/npm/v/react-scripts-intlayer.svg?labelColor=49516F&color=8994BC" />
</a>
<a href="https://npmjs.org/package/react-scripts-intlayer">
<img alt="downloads" src="https://badgen.net/npm/dm/react-scripts-intlayer?labelColor=49516F&color=8994BC" />
</a>
<a href="https://npmjs.org/package/react-scripts-intlayer">
<img alt="types included" src="https://badgen.net/npm/types/react-scripts-intlayer?labelColor=49516F&color=8994BC"
/>
</div>
**Intlayer** is a suite of packages designed specifically for JavaScript developers. It is compatible with frameworks like React, React, and Express.js.
**The `react-scripts-intlayer` package** Includes the `react-scripts-intlayer` commands and plugins for integrating Intlayer with the Create React App based application. These plugins are based on [craco](https://craco.js.org/) and includes additional configuration for the [Webpack](https://webpack.js.org/) bundler.
The `react-scripts-intlayer` package works seamlessly with the [`react-intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/react-intlayer/index.md), and the [`intlayer` package](https://github.com/aymericzip/intlayer/blob/main/docs/en/packages/intlayer/index.md). Have a look at the relevant documentation for more information.
Install the necessary package using your preferred package manager:
```bash packageManager="npm"
npm install react-scripts-intlayer
```
```bash packageManager="yarn"
yarn add react-scripts-intlayer
```
```bash packageManager="pnpm"
pnpm add react-scripts-intlayer
```
The `react-scripts-intlayer` package provides the following CLI commands:
- `npx react-scripts-intlayer build`: Builds React application with the Intlayer configuration.
- `npx react-scripts-intlayer start`: Starts the development server with the Intlayer configuration.
To use the `react-scripts-intlayer` package, you need to replace the `package.json` scripts with the following commands:
```json fileName="package.json"
{
"scripts": {
"start": "react-scripts-intlayer start",
"build": "react-scripts-intlayer build"
}
}
```
`react-scripts-intlayer` is based on [craco](https://craco.js.org/), which allows you to customize the Webpack configuration.
If you need to customize the Webpack configuration, you can also implement your own setup based on the intlayer craco plugin. [See example here](https://github.com/aymericzip/intlayer/blob/main/examples/react-app/craco.config.js).
Intlayer provides a lot of features to help you internationalize your React application.
[ ](https://intlayer.org/doc/environment/create-react-app).
- [Intlayer Website](https://intlayer.org)
- [Intlayer Documentation](https://intlayer.org/docs)
- [Intlayer GitHub](https://github.com/aymericzip/intlayer)
- [Ask your questions to our smart documentation](https://intlayer.org/docs/chat)