New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

globalization-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

globalization-loader

国际化 编译打包,直接中文开发,不用考虑国际化的任何方案 打包 自动提取 中文段落,你只需在谷歌翻译上翻译对应的中文然后保存文件即可。重新打包就ok了

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

globalization-loader

国际化 编译打包,直接中文开发,不用考虑国际化的任何方案 打包 自动提取 中文段落,你只需在谷歌翻译上翻译对应的中文然后保存文件即可。重新打包就ok了

Getting Started

To begin, you'll need to install globalization-loader:

npm install --save-dev globalization-loader

Then add the plugin to your webpack config. For example: webpack.config.js

module.exports = {
  module: {
    rules: [
       { test: /\.js/, use: 'globalization-loader',include: [ path.resolve('./', "src") ]  },
    ],
  },
};

npm run build

会在根目录生成一个.globalization的文件

然后去把这个文件交给谷歌翻译机翻译,把翻译的文件保存在和.globalization相同的目录 名字为 .globalization-en

然后再次build 就会打包成英文项目

v1.0.0 当前版本

后续更新

FAQs

Package last updated on 14 Sep 2020

Did you know?

Socket

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.

Install

Related posts