https://github.com/hiroppy/i18n-json-plugins
https://github.com/hiroppy/i18n-json-plugins
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiroppy/i18n-json-plugins
- Owner: hiroppy
- Created: 2022-05-03T21:43:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T04:25:04.000Z (about 4 years ago)
- Last Synced: 2025-03-21T01:28:16.710Z (about 1 year ago)
- Language: TypeScript
- Size: 66.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# i18n-json-plugins
This project can support improving i18n environment as DX.
## Features
- ✅ automatically adding a new key from your code to i18n json files
- 👷♂️ automatically translating via DeepL from one lang to all langs
- 👷♂️ automatically removing an empty field from i18n json
## Supporting Langs / Libs
| | Status |
| ------------- | ------ |
| typescript | ✅ |
| javascript | 👷 |
| react-i18next | ✅ |
| vue | 👷 |
| webpack | ✅ |
| vite | 👷 |
## Usage
webpack.config.js
```javascript
module.exports = {
module: {
rules: [
{
test: /\.tsx?/,
loader: "@hiroppy/i18n-json-webpack-plugin/lib/loader",
options: {
langs: ["ja", "en"],
basePath: "./public/static/locales",
},
},
],
},
};
```