@semcore/i18n-unplugin
v0.18.14
Published
Semrush i18n unplugin
Downloads
16,798
Readme
@semcore/i18n-unplugin
This component is part of the Intergalactic Design System
📖 Component documentation
🏠 Design system
Install
npm install intergalactic
Usage
Vite
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { intergalacticI18nVitePlugin } from 'intergalactic/i18n-unplugin';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
intergalacticI18nVitePlugin({
bundleLocales: ['es'],
includeLocales: ['en', 'es'],
}),
],
});
Webpack
var { intergalacticI18nWebpackPlugin } = require('intergalactic/i18n-unplugin');
module.exports = {
// ...
plugins: [intergalacticI18nWebpackPlugin()],
// ...
};
Rollup & esbuild
import { intergalacticI18nRollupPlugin, intergalacticI18nEsbuildPlugin } from 'intergalactic/i18n-unplugin';
// ...
👤 Author
UI-kit team and others ❤️
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
This project is MIT licensed.