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

multi-language-tools

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-language-tools

function, performance, experience one-stop multi-language script.

latest
Source
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

multi-language

Function, performance, experience one-stop multi-language script.

✨ Features

🔨 Usage

import { start } from "multi-language-tools/src/index.js";
/*翻译配置*/
const config = {
  projectPath: "", //项目路径根路径
  entryPaths: [], //入口文件目录,相对路径
  commonKeyPath: "src/static/i18n/zh_CN/common.json",
  moduleKeyPath: "src/static/i18n/zh_CN/index2.json",
  excludedPaths: [],
};
start(config, transHook); //transHook可以参考本项目hooks/index.js文件projectIntegrationHooks函数

Notice

Currently, nested template strings are not supported.

For example: Error : 中国${arg1+嵌套美国}

Right: const arg2=${arg1}嵌套美国; 中国${arg2};

Keywords

multi-language

FAQs

Package last updated on 05 Dec 2021

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