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

@xtg/vue-cli-plugin-i18n

v1.0.3

Published

a vue-cli3 plugin, which can convert chinese to i18n, is based on webpack-i18n-transform

Downloads

119

Readme

@xtg/vue-cli-plugin-i18n

基于webpack-i18n-transform进行的封装

用法

npm install @xtg/vue-cli-plugin-i18n

基于vue-i18n使用本插件时的说明

  1. 在基于vue-i18n做国际化时,为了提供更好的体验,建议在计算属性或者render/template中处理国际化,而不是在data中使用;因为vue-i18n是基于vue自身的响应式数据来实现更新的;当然如果你一定要在data中使用中文,再将变量绑定到视图中,这时候在切换语言环境时,最好使用location.reload();
  2. 如果是老项目集成国际化功能,那么使用本插件或许是很方便的一种方式,但是由于一开始对代码开发要求并不高,所以在切换语言环境时建议使用location.reload()刷新页面;
  3. i18n/index.js中给出了基于axiosview-design场景下的异步加载解决方案以供参考
  4. 该文档只列举了vue相关的说明事项,详细说明请参考webpack-i18n-transform