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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vscode-i18n-linter

v1.5.1

Published

A VSCode extension to identify and extract string literals for js(x)/ts(x) files

Downloads

5

Readme

🐤 kiwi linter

kiwi 的 VS Code插件工具,主要用于检测代码中的中文,高亮出中文字符串,并一键提取中文字符串到对应的语言 Key 库。

同时优化开发体验,在 VS Code 中提供搜索中文,提示国际化值对应的中文功能。

如何使用

VS Code 插件搜索 kiwi linter 安装

推荐与🐤 Kiwi-国际化全流程解决方案结合使用

演示

展示

配置项

vscode-i18n-linter.langPrefix

default: .kiwi/zh-CN/

多语言文件的位置, kiwi linter将根据目录内的多语言文件提取对应语言(默认为中文zh-CN)高亮. 可以参考的目录结构如下: 示例目录结构

vscode-i18n-linter.i18nFilesPattern

default: **/src/**/ts*

待扫描的文件类型,可以基于 minimatch 规则进行自定义。

vscode-i18n-linter.markStringLiterals

default: true

是否标红中文字符串,默认开启。

vscode-i18n-linter.showOverviewRuler

default: true

右侧滚动条中,是否显示对应的待提取中文高亮。

vscode-i18n-linter.markColor

default: #ff4400

待提取文字,高亮颜色。

vscode-i18n-linter.enableReplaceSuggestion

default: true

是否开启一键提取中文功能。

VS code 命令

在全部代码库中查找国际化文案

默认快捷键是 cmd + ctrl + r. 同时也提供状态栏按钮 Kiwi Search,点击触发全局搜索.

在当前文件中查找国际化文案

默认快捷键是 cmd + ctrl + f.

Changelog

1.3.9

  • 处理了部分特殊字符制表符的检测

1.3.8

  • 添加vue模板语法替换 优化模板语法中的函数等包含的中文处理{name==1?'吃':'去'}

1.1.4

  • 优化国际化文案提示

1.1.2

  • 支持 HTML 文件

1.0.0

  • 支持国际化 Key 值显示
  • 支持对应国际化文案的搜索