批量翻译替换react内中文,支持一对多翻译,最终会替换原文件,会生成execl,翻译文案json。最小运行仅需配置入口和百度翻译账号。 使用方法 1、在项目根目录新建js脚本文件 // replace-i18n.jsconst{ReplaceI18n}=require('react-i18n-autoreplace');constconfig={entry:'./src/pages/i18n/index.tsx',baiduConfig:{app...
npm install react-i18n-auto--save-dev AI代码助手复制代码 第一步:添加babel插件配置(.babelrc添加方式) {"plugins": ["@babel/plugin-transform-runtime","react-i18n-auto","..."] } AI代码助手复制代码 第二步:添加自动化配置 i18n.config.js constgenerator =require('react-i18n-auto/generator')cons...
npm install i18n-auto-react#oryarn add i18n-auto-react#orpnpm install i18n-auto-react 使用 1. 前提准备 使用前请去百度翻译开放平台申请通用文本翻译服务 执行npx i18n init初始化配置i18n.config.js 配置server.appid与server.key(百度翻译服务的密钥) ...
react-i18n-auto专门为中文国际化提供的自动化方案,快速迭代国际化开发,方法如下 安装 npm install react-i18n-auto --save-dev 第一步:添加babel插件配置(.babelrc添加方式) { "plugins": [ "@babel/plugin-transform-runtime", "react-i18n-auto", "..." ] } 第二步:添加自动化配置 i18n.config.js ...
i18n-auto-react 基于百度翻译API服务的自动翻译工具 只需要书写中文,即可自动翻译成其他语言 安装 npm install i18n-auto-react#oryarn add i18n-auto-react#orpnpm install i18n-auto-react 使用 1. 前提准备 使用前请去百度翻译开放平台申请通用文本翻译服务 ...
HoseaLE / react-i18n-auto Watch 1 Star 0 Fork 0 Code Issues Pull requests 6 Actions Projects Security Insights Automate your workflow from idea to production GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy ...
npm install react-i18n-auto --save-dev 第一步:添加babel插件配置(.babelrc添加方式) { "plugins": [ "@babel/plugin-transform-runtime", "react-i18n-auto", "..." ] } 第二步:添加自动化配置 i18n.config.js const generator = require('react-i18n-auto/generator') ...
A free, fast, and reliable CDN for babel-plugin-react-auto-i18n. A babel plugin that can help you implement i18n
npm install react-i18n-auto --save-dev 第一步:添加babel插件配置(.babelrc添加方式) { "plugins": [ "@babel/plugin-transform-runtime", "react-i18n-auto", "..." ] } 第二步:添加自动化配置 i18n.config.js const generator = require('react-i18n-auto/generator') ...
npm install react-i18n-auto --save-dev 第一步:添加babel插件配置(.babelrc添加方式) { "plugins": [ "@babel/plugin-transform-runtime", "react-i18n-auto", "..." ] } 第二步:添加自动化配置 i18n.config.js const generator = require('react-i18n-auto/generator') ...