Socket
Book a DemoInstallSign in
Socket

@ng1005/chrome-extension-i18n

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng1005/chrome-extension-i18n

chrome extension i18n翻译脚本

0.0.13
latest
npmnpm
Version published
Maintainers
1
Created
Source

chrome扩展多语言包生成脚本

安装
npm install @ng1005/package-i18n --registry=http://localhost:4873/

pnpm install @ng1005/package-i18n --registry=http://localhost:4873/

yarn add @ng1005/package-i18n --registry=http://localhost:4873/
使用
import { genChrome,getPath,genElementLangOption,genNormal,translateObjectLang,
  writeJson,writeText,isFileExisted,readJson,readText,genElementLangs, } from "@ng1005/package-i18n";

#假设在插件目录下src/langs/目录下执行,改目录下有index.ts用来定义语言包,当前支持对象
  import {lang} from './index.ts'
  let langs=['zh_CN','en']//为空或者不传时生成所有
  genChrome(lang,getPath('../../public/_locales/'),langs)

Keywords

utils

FAQs

Package last updated on 23 Mar 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.