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

app-localization-cli

v1.0.16

Published

A simple CLI tool for managing app localizations for iOS and Android projects using Capacitor or Cordova.

Readme

App Localization CLI (ALC)

A simple CLI tool for managing app localizations for iOS and Android projects using Capacitor or Cordova.

Features

📱 iOS & Android Support
🔄 Automatic Resource Updates
🌐 Multiple Language Support
⚡️ Easy to Use

Apps use ALC

  • AcuNote: Acupuncture and Meridian points learning app.
  • W3S: Easy frontend tutorials for beginners.
  • Classical Chinese: Learn Classical Chinese Easily.
  • Style Rater: Meet Your Better Self!
  • Chinese Meal: Chinese Vegetarian Cuisine Guide.
  • Welcome to add your app here...

Installation & Usage

No installation needed! Just run with npx:

npx app-localization-cli

Or install globally if you prefer:

npm install -g app-localization-cli
update-localizations

Project Structure

Your project should look like this:

your-project/
├── localizations/          # Your localization configs
│   ├── en.json
│   ├── zh-Hans.json
│   └── zh-Hant.json
├── ios/                    # iOS project directory
│   └── App/
│       ├── App/
│       │   ├── Info.plist
│       │   ├── en.lproj/
│       │   ├── zh-Hans.lproj/
│       │   └── zh-Hant.lproj/
│       └── App.xcodeproj/
│           └── project.pbxproj
└── android/               # Android project directory
    └── app/
        └── src/
            └── main/
                └── res/
                    ├── values/
                    │   └── strings.xml
                    ├── values-zh-rCN/
                    │   └── strings.xml
                    └── values-zh-rTW/
                        └── strings.xml

Configuration

1. Create Localization Files

Create JSON files in the localizations directory for each language:

📄 localizations/en.json:

{
  "ios": {
    "CFBundleDisplayName": "My App"
  },
  "android": {
    "title_activity_main": "My App"
  }
}

📄 localizations/zh-Hans.json:

{
  "ios": {
    "CFBundleDisplayName": "我的应用"
  },
  "android": {
    "title_activity_main": "我的应用"
  }
}

2. Run the Tool

# Update both platforms
npx app-localization-cli

# Or update specific platform
npx app-localization-cli --platform ios
npx app-localization-cli --platform android

How It Works

iOS

  1. Creates .lproj directories for each language
  2. Generates InfoPlist.strings files with localized values
  3. Updates Info.plist to add CFBundleLocalizations and CFBundleDevelopmentRegion localizations values
  4. Updates Xcode project configuration to include new languages

Example iOS output:

MyApp/
├── en.lproj/
│   └── InfoPlist.strings     # CFBundleDisplayName = "My App";
├── zh-Hans.lproj/
│   └── InfoPlist.strings     # CFBundleDisplayName = "我的应用";
└── Info.plist                # CFBundleDisplayName = "My App";

Android

  1. Creates values-* directories for each language
  2. Generates or updates strings.xml files
  3. Preserves existing string resources
  4. Handles XML escaping automatically

Example Android output:

res/
├── values/
│   └── strings.xml          # <string name="title_activity_main">My App</string>
└── values-zh-rCN/
    └── strings.xml          # <string name="title_activity_main">我的应用</string>

Supported Keys

iOS

| Key | Description | | --------------------- | ------------------------ | | CFBundleDisplayName | App name shown on device | | ... | Any string resource |

Android

| Key | Description | | --------------------- | ------------------- | | title_activity_main | Application title | | ... | Any string resource |

Language Code Mapping

| Language | iOS Code | Android Code | | ------------------- | --------- | ------------------------------------------------- | | English | en | values | | Simplified Chinese | zh-Hans | values-zh-rCN | | Traditional Chinese | zh-Hant | values-zh-rTW, values-zh-rHK, values-zh-rMO | | Other Languages | ... | ... |

Troubleshooting

Common Issues

  1. NSUserTrackingUsageDescription is empty after build

    Set a default value for NSUserTrackingUsageDescription in Info.plist. Otherwise, it will be empty after build in CFBundleDevelopmentRegion language.

  2. Files Not Updated

    # Check if localizations directory exists
    ls localizations/*.json
    
    # Verify file permissions
    ls -l ios/App/App
    ls -l android/app/src/main/res
  3. Wrong Directory Structure

    # Should be in project root
    npx app-localization-cli --help
  4. Invalid JSON Format

    # Validate JSON files
    cat localizations/*.json | jq '.'

Debug Mode

# Run with debug output
DEBUG=true npx app-localization-cli

License

MIT