Welcome to next-i18n-keys 👋
Auto generate next.js page's i18n keys
Homepage
🏠Install
yarn install
Configuration
// next.config.jsconst NextI18nKeysWebpackPlugin = ; // ... configplugins;// ...
// pages/*.jsPagegetInitialProps = async { // a object of i18n data const data = await ; // placeholder of keys, will be replaced by plugin const keys = '^__I18N_KEYS__$'; const i18n = keys; return i18n ;}
Author
👤 Sora Liu 475212506@qq.com
- Github: @lovesora
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 Sora Liu 475212506@qq.com.
This project is MIT licensed.