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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shotlingo/locale-codes

v1.0.1

Published

App Store + Google Play locale codes for 40+ supported languages. Maps ISO 639-1 codes to App Store Connect language codes and Google Play language codes.

Readme

@shotlingo/locale-codes

npm version npm downloads license GitHub stars

App Store + Google Play locale codes for 40+ supported languages.

Maps ISO 639-1 language codes to App Store Connect language codes and Google Play Console language codes — the two are subtly different (e.g. Hebrew is he on iOS but iw-IL on Google Play; Simplified Chinese is zh-Hans on iOS but zh-CN on Google Play). Includes an RTL flag and native name per locale.

Maintained alongside Shotlingo — the canonical mapping this package ships is the one used internally by Shotlingo's screenshot localization pipeline for 40+ App Store markets.

Install

npm install @shotlingo/locale-codes

Usage

import { LOCALES, byIso, appStoreCode, playStoreCode, rtlLocales } from '@shotlingo/locale-codes';

LOCALES.length; // 43

byIso('zh-Hans');
// { iso: 'zh-Hans', name: 'Chinese (Simplified)', nativeName: '简体中文',
//   appStore: 'zh-Hans', playStore: 'zh-CN', rtl: false }

appStoreCode('he');  // 'he'
playStoreCode('he'); // 'iw-IL'  ← different on purpose

rtlLocales().map((l) => l.iso);
// ['ar', 'he', 'fa', 'ur']

Pipe into a fastlane Deliverfile or App Store Connect upload

# Deliverfile — only upload metadata for locales App Store Connect accepts
APP_STORE_CONNECT_LOCALES = %w[
  en-US ja de-DE es-ES fr-FR ko zh-Hans zh-Hant ar-SA pt-BR
]
languages(APP_STORE_CONNECT_LOCALES)

The package's LOCALES array gives you the canonical App Store + Play list without re-deriving it from scattered Apple / Google docs.

Companion tool

App Store Locale Codes lookup (Shotlingo) — interactive search + copy-to-clipboard for every locale. The same dataset, visually filtered, with the iOS / Play / RTL columns side by side.

Shotlingo localizes App Store screenshots into 40+ languages at the right device sizes in one upload — the locale mapping in this package is what powers its language selector.

See also

License

MIT © Alperen Güntekin