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

@budaknyenyel/i18n-mcp

v0.1.0

Published

MCP server for the Indonesian-English localization linter

Readme

Indonesian-English localization lint

Android Lint checks for localization at resource, display and data boundaries. Indonesian is the default target locale; the configured locale list is not restricted to English and Indonesian. The checks use Android Lint's issue IDs and suppression mechanisms. See IMPLEMENTATION_PLAN.md for intended scope and limitations.

Build and prerequisites

Install JDK 21 and set JAVA_HOME. Install the Android SDK and set ANDROID_HOME or ANDROID_SDK_ROOT to its directory; integration fixtures use Android SDK Platform 36. The build pins Gradle 9.7.1, Kotlin 2.4.21, and Android Lint 32.5.0; the Android Gradle Plugin belongs to the consuming app. On macOS/Linux, make the wrapper executable with chmod +x gradlew and run ./gradlew build; on Windows run gradlew.bat build in Command Prompt or ./gradlew.bat build in PowerShell. Quote paths containing spaces. No compatibility combination is yet claimed as verified: CI targets AGP 9.0 and 9.5, using AGP's built-in Kotlin support, and exercises the shared fixture separately on AGP 9.5.

Gradle integration

Build and publish locally with ./gradlew publishToMavenLocal (use gradlew.bat on Windows). In the consuming project's plugin management and dependency repositories include mavenLocal(), google() and mavenCentral(). Apply id("dev.androidkit.i18n-lint") version "0.1.0-SNAPSHOT" to an Android application, library, test or dynamic-feature module. The plugin adds the same-version dev.androidkit.i18n:lint-rules artifact to lintChecks; invoke the app's normal lint task. Configure severity, baseline, SARIF and suppressions through Android Lint. Maven artifacts are not published externally; the coordinates are for local development only.

CLI

After ./gradlew :cli:jar, run:

java -jar cli/build/libs/i18n-lint.jar doctor --json
java -jar cli/build/libs/i18n-lint.jar lint --path /path/to/android-project --json

Use a quoted Windows path such as --path "C:\\work\\my app". The CLI requires the SDK and project metadata; it reads sdk.dir from the project's local.properties when neither ANDROID_HOME nor ANDROID_SDK_ROOT is set. Individual source files are not supported inputs. --config FILE selects the configuration explicitly, --path DIRECTORY may be repeated, and --rules takes comma-separated issue IDs. --report markdown and --report sarif select artifacts (both are default); --baseline FILE, --baseline-create FILE, and --baseline-update FILE are mutually exclusive. Reports are stored beneath the analyzed project root in .android-kit/runs/<run-id>/i18n/; envelope artifact paths are relative to that root. JSON goes to stdout and diagnostics to stderr. Exit codes are 0 for pass, 1 for findings, and 2 for blocked, unsupported or error. Unsupported analysis must not be interpreted as a clean result.

The CLI selects an Android Lint invocation based on the project metadata:

flowchart TD
    A["CLI lint request"] --> B["Validate paths, configuration and SDK"]
    B --> C{"Gradle project?"}
    C -->|Yes| D["Run Gradle lint with custom rules"]
    C -->|No| E["Run Android Lint with custom rules"]
    D --> F["Read lint XML findings"]
    E --> F
    F --> G["Write requested reports and result envelope"]

Configuration

Use either i18n-lint.yaml containing the section value below, or an i18n section in android-kit.yaml. If both exist, pass --config to the CLI or set I18N_LINT_CONFIG for Gradle; do not merge them. The section schema is schema/i18n.v1.json.

domains:
  paymentMethod:
    values: [Cash, Card]
    localizer: localizedPaymentMethod
ui_sinks: [Text, contentDescription]
data_sinks: [JSONObject.put, exportCsv]
user_facing_exceptions: [UserFacingException]
locales: [values, values-in]

For values_from, use path/to/Catalog.kt:declaration to name the configured value source. RawIdDisplay uses declared domain values and domain-typed or @IdentifierDomain sources, rather than treating arbitrary strings as identifiers. Its finding message identifies the matched domain and provenance chain; CLI JSON evidence also exposes these as domain and provenance fields when present. Other findings retain their normal evidence fields.

Rules

All six default to warning. Suppress by issue ID using Android Lint's supported @Suppress, @SuppressLint, //noinspection, or XML tools:ignore scope.

| ID | Signal and remediation | |---|---| | RawIdDisplay | A canonical identifier reaches a display sink; pass it through the configured localizer. | | IdInTranslation | A translated resource contains a configured canonical identifier; use its translated label. | | ExceptionToUi | A technical exception reaches UI text; map it to a localized message or a declared user-facing exception. | | LocalizedExceptionSwallowed | A localized exception message is discarded by an error mapper; preserve the approved message. | | MissingLocaleKey | A shipped locale lacks a default resource or has incompatible format arguments; add or correct the resource. | | LocalizedDataLeak | Localized output reaches a configured data sink; persist or transmit the canonical identifier. |

These checks are static analysis, not whole-program verification; review findings and use targeted suppressions where needed. Machine translation and layout/overflow checks are out of scope.

Solid arrows are the correct paths; dotted arrows are what the rules flag. L1, L2 and L6 guard the canonical-ID boundary; L3 guards exception text.

flowchart LR
    ID["Canonical ID, e.g. Cash"] -- "OK" --> LOC["Configured localizer"]
    LOC -- "OK" --> UI["UI text"]
    ID -- "OK" --> DATA["Storage, sync, export"]
    ID -. "L1 RawIdDisplay" .-> UI
    LOC -. "L6 LocalizedDataLeak" .-> DATA
    ERR["Exception message"] -. "L3 ExceptionToUi" .-> UI
    ID -. "L2 IdInTranslation" .-> RES["values-in strings"]

MCP and agent guidance

Install the stdio adapter with npm install @budaknyenyel/i18n-mcp. It exposes i18n_lint and i18n_doctor, delegates to the bundled CLI jar, and requires Node.js 24 or newer and Java. Set I18N_LINT_JAR to use a different CLI jar. Linting runs the analyzed project's Gradle wrapper and build scripts; only lint trusted projects. See SKILL.md for CLI/MCP workflows. Plain CI does not require an agent or MCP.

Suggested AGENTS.md snippet:

Run the localization lint CLI or `i18n_lint` before claiming a localization scan passed. Report each issue ID and location. Only lint trusted projects: linting executes their Gradle build scripts.

Contributing and security

Use synthetic fixtures only; do not commit private app code, credentials or production data. Report security issues privately to the repository maintainers. Licensed under MIT.