Prerequisites #️⃣
- Make sure you are running the project on Strapi v4.0 or above.
- Ensure that the Internationalization (i18n) plugin is installed (should be pre-installed on Strapi from v3.6.0).
- Create a Localazy account & upgrade to Autopilot plan
Installation #️⃣
Strapi Marketplace #️⃣
Recommended: Get the plugin following the steps in the Strapi Marketplace: https://market.strapi.io/plugins/@localazy-strapi-plugin
Install plugin via NPM #️⃣
The plugin can also be installed via NPM.
Localazy plugin requires an updated Webpack configuration of your Strapi project. Because Strapi is using Webpack 5, it is necessary to disable some Node.js polyfills in the Strapi monorepo. To make the process smooth, install the package using the npm install @localazy/strapi-plugin@latest && npx @localazy/strapi-plugin
command and follow the instructions.
Alternatively, make the following steps:
- Open the
webpack.config.js
file of your Strapi project (or create one in thesrc/admin
directory) - Update the config file with the configuration below
module.exports = (config, webpack) => {
return {
...config,
resolve: {
...config.resolve,
fallback: {
...config.resolve.fallback,
crypto: false,
http: false,
fs: false,
zlib: false,
https: false,
stream: false,
path: false,
timers: false,
tls: false,
net: false,
},
}
};
};
- Run the
npm run build
command to build the admin panel
Support #️⃣
- If you encounter any issues or have questions, please contact us at [email protected].
- Join the Localazy Discord to discuss all things regarding localization.