🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

translate-language

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translate-language

简易的翻译插件,demo地址[点我点我 click me](http://zoone.cc:8080/webproject/components_demo/translateLanguage)

latest
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

translate-language

简易的翻译插件,demo地址点我点我 click me

安装

$ cnpm install translate-language

使用方法

require引入之后,在js中调用即可

示例

 const translateFunc = require('translate-language');
 translateFunc();

方法可以传入一个元素的id,如

 translateFunc('app');

则只会翻译app中的英文

demo运行方法

将项目下载到本地之后,

 $ npm install

安装node模块,在cmd中输入

 $ webpack-dev-server

之后在浏览器中输入http://localhost:8080

FAQs

Package last updated on 11 Mar 2018

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