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

drhblock-l10n

v1.0.0

Published

为 Drhblock 组件提供本地化支持,使用weblate进行翻译管理

Readme

DrhBlock-l10n

DrhBlock 所有项目的翻译都在本项目进行管理。

在开发中使用 DrhBlock-l10n

安装

npm install --save-dev drhblock-l10n

基本使用

import locales, {localeData, isRtl} from 'drhblock-l10n';
import editorMessages from 'drhblock-l10n/locales/editor-messages';
  • locales:DrhBlock 项目当前支持的语言环境
  • isRtl:如果语言环境是从右到左书写的,则返回 true 的函数
  • localeData:支持的语言环境的语言环境数据,格式为 react-intl 所需的 addLocaleData 接受的格式
  • editorMessages:特定资源的所有支持的语言环境的实际消息字符串。editorMessages 收集界面、扩展和绘图编辑器的所有字符串。

有用的脚本

DrhBlock-l10n 提供:

  • build-i18n-src:使用 babel 和插件提取所有 FormattedMessage 字符串进行翻译的脚本。将所有源文件中的消息合并到一个 en.json

版本控制

DrhBlock-l10n 使用语义化版本控制 - 破坏性更改将增加主版本号,新功能(例如新语言)将增加次版本号。但是,补丁号实际上是一个日期时间字符串。这样可以轻松查看翻译最近更新的时间。

一般来说,需要 PR 的更改(新功能、新语言)应该增加次版本号。

弃用

我们正在远离使用 tx cli,因此 .tx/config 文件最终将被弃用。