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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@mattproch-dev/translation-git

v0.0.10

Published

Push/pull translation to/from a Google Sheet

Downloads

21

Readme

Set up Google API

  1. https://console.cloud.google.com/apis/credentials
  2. Set up API Key, OAuth consent screen and OAuth 2.0 Client ID

OAuth consent screen

  • App name
  • User support email
  • Developer email address
  • Scope: Google Sheets API .../auth/spreadsheets
  • Test users: your developers

OAauth 2.0 Client ID:

  • Web application
  • Name
  • Authorized redirect URI: http://localhost

Set up your TS Enum

enum TranslationEnum {
  PROFILE_PICTURE = 'BACKEND.TEST3', // Comment
  TEAM_PROFILE_PICTURE = 'BACKEND.TEST4', // Comment
  PARTICIPANT_IMAGE = 'BACKEND.TEST5', // Comment
}
  • The upload filters lines containing =
  • It takes the key inside '' and comment after //

Set up your Google sheet

|Key|Comment|cs|en|es|ru|it| |---|---|---|---|---|---|---| |BACKEND.ERRORS.ACCOUNT_NOT_FOUND|During login|Účet nenalezen|Account not found||||

Set up .env

TRANSLATION_GOOGLE_KEY=XY
TRANSLATION_GOOGLE_CLIENT_ID=XY
TRANSLATION_GOOGLE_SECRET=XY
TRANSLATION_GOOGLE_TOKEN_PATH=gtoken.json
TRANSLATION_SPREADSHEET_ID=XY
TRANSLATION_SHEET_NAME='List 1'
TRANSLATION_MODE=BACKEND
TRANSLATION_OUTPUT_FOLDER='./src/i18n'
TRANSLATION_INPUT_ENUM_PATH='./src/TranslationEnum.ts'

Usage

npm i -g @mattproch-dev/translation-git

translation upload
translation download

Upload

  • Upload only uploads the keys and comments
  • Local comments overwrite the ones in gSheet
  • Extra keys in gSheet are not deleted

Download

  • Downloads all the translation in separate folders by languages in one big file text.json