
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
webpack-translate
Advanced tools
[中文](https://github.com/aiyuekuang/webpack-translate/blob/master/README.md) | [EN](https://github.com/aiyuekuang/webpack-translate/blob/master/README.en.md)
安装:
npm install webpack-translate
or
yarn add webpack-translate
使用:
//webpack.config.js
//webpack配置中的plugins属性
import Translate from "webpack-translate";
plugins: [
new Translate({
translateTypes:["en", "ko", "ja","gd"],
suffix:"js",
path:path.resolve(__dirname,"./src/components/locales"),
source:path.resolve(__dirname,"./src/components/locales/zh_CN.js")
}),
//其他wenpack插件
]
文档:
| api | 类型 | 默认值 | 说明 |
|---|---|---|---|
| translateTypes | array[string] | ["en"] | 需翻译的目标语言简写,查询简写地址 |
| suffix | string | "js" | 输出的语言文件的后缀名 |
| path | string | './src/components/locales/' | 输出的语言文件相对项目根目录的地址 |
| source | string | '../src/components/locales/zh_CN.js' | 需作为源语言进行翻译的文件 |
| outputFileName | array[string] | [] | 输出文件的其他名称设置,与上方translateTypes的数组一一对应即可,注意个数必须保持一致 |
| from | string | "zh-CN" | 翻译源文件的语言简码 |
FAQs
[中文](https://github.com/aiyuekuang/webpack-translate/blob/master/README.md) | [EN](https://github.com/aiyuekuang/webpack-translate/blob/master/README.en.md)
We found that webpack-translate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.