npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vuejs-intl

v1.0.2

Published

vuejs国际化命令行

Readme

Vuejs 国际化自动化管理工具

一个用于自动化生成与管理多语言资源的命令行工具,支持初始化语言目录、添加/删除语言、修改或删除具体的 key-value 项。

安装

npm install -g vuejs-intl

使用方式

intl [cmd] [lang] [options]

参数说明

  • cmd:管理命令,支持:
    • init:初始化国际化文件结构
    • add:添加新语言(例如 en, zh
    • delete:删除已有语言
  • lang:语言代码,例如 enzh

可选参数

| 参数 | 说明 | 示例 | |--------------------|----------------------------------|------------------------------| | -k, --key | 要添加或修改的 key | -k hello | | -v, --value | 与 key 对应的 value | -v "Hello" | | -d, --delete | 是否删除指定的 key(布尔值) | -k hello -d |

使用示例

初始化项目

intl init

添加英文语言包

intl add en

删除中文语言包

intl delete zh

添加或更新 key-value

intl -k hello -v "Hello"

删除某个 key

intl -k hello -d

语言目录结构说明(默认结构)

初始化后默认生成如下结构:

public/l10n/
├── intl_en.json
├── intl_zh.json
└── ...

pinia store

src/intl/
├── index.js

每个语言文件是一个扁平化的 JSON 格式,例如:

{
  "hello": "Hello",
  "goodbye": "Goodbye"
}