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

swingpapago

v0.0.12

Published

catherine-bot

Downloads

17

Readme

i18n-automation

i18n으로 번역되는 국가별 리소스 파일을 자동화하는 모듈 입니다.

Guide

1. 자동화 모듈 install

> npm install swingpapago
> spago init

프로젝트 하위에 root/spago.creds.json 및 src/i18n 폴더 생성

2. Google Spreadsheet API 인증

1. Google Cloud 로그인
2. IAM 및 관리자 > 리소스 관리 > 프로젝트 생성
3. 생성된 프로젝트 > API 및 서비스 > 사용자 인증 정보 > 서비스 계정 생성
4. 생성한 계정의 서비스 계정 세부정보 > 키 항목 탭
5. 키 추가 > JSON 키 유형을 선택 > JSON 키 파일 생성
6. spago.creds.json에 생성된 JSON 파일 내용 넣기
7. .gitignore에 spago.creds.json 추가

3. Google Spreadsheet 연동

1. 번역본을 작성할 구글 스프레드시트 생성
2. 스프레드시트의 공유 > 사용자 및 그룹추가에 spago.creds.json에 적힌 client_email 추가
3. 스프레드시트 첫 번째 열에 key, ko, en 헤더 작성
4. spago.creds.json의 spreadsheet_doc_id 키 값에 스프레드시트 doc id 작성
5. 스프레드시트 doc id는 해당 스프레드 시트 url에서 확인
6. https://docs.google.com/spreadsheets/d/{{spreadsheet_doc_id}}/edit#gid=0
7. 스프레드시트 key에 번역할 키, ko에 한국어 번역, en에 영어 번역 작성

4. 구글 스프레드시트 리소스 다운로드 (CLI 명령어 실행)

> npm run sl

5. 다운받은 리소스 파일 확인

src/i18n/locales/{locale}/translation.json 생성