hiroppy / i18n-json-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

module.exports = {
  module: {
    rules: [
      {
        test: /\.tsx?/,
        loader: "@hiroppy/i18n-json-webpack-plugin/lib/loader",
        options: {
          langs: ["ja", "en"],
          basePath: "./public/static/locales",
        },
      },
    ],
  },
};

About


Languages

Language:TypeScript 92.3%Language:JavaScript 7.7%