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

vuettext

v0.6.0

Published

Gettext tools to improve your internationalization workflow with Vue-i18n

Downloads

3

Readme

vuettext

Gettext tools to improve your internationalization workflow with Vue-i18n

Version CircleCI Downloads/week oclif License

Usage

$ npm install -g vuettext
$ vuettext COMMAND
running command...
$ vuettext (-v|--version|version)
vuettext/0.6.0 linux-x64 node-v11.6.0
$ vuettext --help [COMMAND]
USAGE
  $ vuettext COMMAND
...

Commands

vuettext help [COMMAND]

display help for vuettext

USAGE
  $ vuettext help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

vuettext msgfmt

Convert *.po messages to vue-i18n format

USAGE
  $ vuettext msgfmt

OPTIONS
  -h, --help           show CLI help

  -i, --input=input    (required) [default: i18n/messages/*.po] Glob pattern to specify *.po files. Expected string or
                       separated comma strings
                       Needs to be surrounded with quotes to prevent shell globbing.
                       Guide to globs: https://github.com/isaacs/node-glob#glob-primer

  -o, --output=output  (required) [default: i18n/locales] Path to the locales directory

  --ignore=ignore      Glob pattern to specify ignored files.
                       Expected string or separated comma strings

See code: src/commands/msgfmt.ts

vuettext msginit FILE

Initialize language translation (*.po file for selected language)

USAGE
  $ vuettext msginit FILE

ARGUMENTS
  FILE  [default: i18n/messages.pot] Input *.pot file

OPTIONS
  -h, --help
      show CLI help

  -l, --locale=locale
      language code of the language. This can be in one of three forms:
      - 'll', an ISO 639 two-letter language code (lowercase). See Language Codes for the list of codes.
      - 'll_CC', where 'll' is an ISO 639 two-letter language code (lowercase) and 'CC' is an ISO 3166
         two-letter country code (uppercase). The country code specification is not redundant: Some languages
         have dialects in different countries. For example, 'de_AT' is used for Austria, and 'pt_BR' for Brazil.
         The country code serves to distinguish the dialects. See Language Codes and Country Codes for
         the lists of codes.
      - 'll_CC@variant', where 'll' is an ISO 639 two-letter language code (lowercase), 'CC' is an ISO 3166
         two-letter country code (uppercase), and 'variant' is a variant designator. The variant designator
         (lowercase) can be a script designator, such as 'latin' or 'cyrillic'.

  -o, --output=output
      Path to output file

See code: src/commands/msginit.ts

vuettext msgmerge

Merge outdated messages (*.po files) and updated *.pot template

USAGE
  $ vuettext msgmerge

OPTIONS
  -d, --def=def    (required) [default: i18n/locales/*.po] Glob pattern to specify message *.po files. Expected string
                   or separated comma strings
                   Needs to be surrounded with quotes to prevent shell globbing.
                   Guide to globs: https://github.com/isaacs/node-glob#glob-primer

  -h, --help       show CLI help

  -r, --ref=ref    (required) [default: i18n/messages.pot] Path to updated reference file (*.pot template)

  --ignore=ignore  Glob pattern to specify ignored files
                   Expected string or separated comma strings

See code: src/commands/msgmerge.ts

vuettext xgettext PATTERN

Extract Vue-i18n strings from *.js and *.vue files to *.pot file

USAGE
  $ vuettext xgettext PATTERN

ARGUMENTS
  PATTERN  [default: **/*.{js,vue}] Glob pattern to specify files to be extracting
           Vue-i18n strings. Expected string or separated comma strings
           Needs to be surrounded with quotes to prevent shell globbing.
           Guide to globs: https://github.com/isaacs/node-glob#glob-primer

OPTIONS
  -h, --help           show CLI help
  -o, --output=output  (required) [default: i18n/messages.pot] Path to output file

  --ignore=ignore      Glob pattern to specify ignored files
                       Expected string or separated comma strings

See code: src/commands/xgettext.ts