0.1.0 • Published 2 years ago

babel-plugin-react-auto-i18n v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

babel-plugin-react-auto-i18n

WIP...Now it's depend on vite, in the future the vite will be removed.

Install

npm i babel-plugin-react-auto-i18n -D

Usage

import reactAutoI18n from "babel-plugin-react-auto-i18n"

babel({
    plugins: [
        [
            reactAutoI18n,
            {
                include: "**/*.tsx",
                exclude: "node_modules",
                output: "./i18n"
            }
        ]
    ]
})

Tip

Before use this plugin, you should ensure react-i18next and i18next has been installed.