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

crowdup

v0.2.1

Published

A simple CLI tool to update crowdin translations for web applications

Downloads

5

Readme

crowdup

crowdup is a project for anyone who wants to easily update their app translations files from Crowdin that helps update translations via a simple command line interface.

This project is early in development and a work in progress. Please file issues!

Demo

Configure crowdup, then run crowdup update and watch the magic happen!

demo

About

crowdup matches translation files purely based on filename. For instance, ../archive/en/en-US.json will be matched with ../i18n/translated/en-US.json and so forth. This might not work best for everyone; feel free to send a pull request to satisfy your scenario.

Features:

  • Gives users the ability to overwrite existing web app translations with those from Crowdin
  • Users can build then download via the Crowdin API directly, or point crowdup at downloaded translations
  • Users have the option to look over files to update and abort without modifying anything if something looks wrong
  • crowdup stores user configurations, so updating translations in the future is super fast
  • Check status of translations in Crowdin

Coming soon:

  • Detect translation matches based on subfolders where translation filenames are identical
  • Ability to map translation files from archive to specific translation file locations
  • Ability to ignore files
  • Detect if files need to be updated or not
  • Better error detection and logging

Setup

Dependencies

crowdup requires NodeJS. Find and install the latest versions of NodeJS; if you use Mac OS X, consider installing homebrew to easily install what you need with the following command:

$ brew install node

Install

Be sure to install all dependencies before installing crowdup.

$ sudo npm install -g crowdup

Uninstall

$ sudo npm uninstall -g crowdup

Usage

See crowdup help for a full list of commands.

$ crowdup --help

Use with Crowdin API

Run crowdup config and add your app's translation directory, Crowdin API key, and Crowdin project identifier. For example:

$ crowdup config
crowdup: full path to app translations:  /Users/daniel/Projects/webapp/app/i18n
crowdup: crowdin api key found in account at crowdin.com:  37cb230570eb0bd1bc00860ff42c1ba3
crowdup: crowdin project id found in account at crowdin.com:  my_project
saved crowdup configuration to /Users/daniel/.crowdup

Now you can update translations on demand with:

$ crowdup update

Use with downloaded Crowdin files

Don't want to use the Crowdin API? No problem. Point crowdup at your Crowdin translation download (either the .ZIP or directory) and at your app translations directory:

$ crowdup update -c ~/Downloads/crowdin-translations.zip -a ~/Projects/webapp/app/i18n/

Check status of translations

Easily check the status of your translations with:

$ crowdup status