# Global App Localization Health Checker (`eager_cornet/global-app-localization-health-checker`) Actor

An open-source, automated solution for localization QA. This bot crawls your live website and uses AI to identify untranslated "fallback text," mixed language content, and broken placeholders, providing real-time health scores and fix suggestions.

- **URL**: https://apify.com/eager\_cornet/global-app-localization-health-checker.md
- **Developed by:** [vikash kumar](https://apify.com/eager_cornet) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🌍 Global App Localization Health Checker

![Apify](https://img.shields.io/badge/Platform-Apify-9B51E0) ![Python](https://img.shields.io/badge/Language-Python-3776AB) ![Lingo.dev](https://img.shields.io/badge/Powered%20By-Lingo.dev-FF4F00) ![License](https://img.shields.io/badge/License-MIT-green)

> **Stop losing global users to bad translations.** 🛑\
> Automatically crawl, analyze, and score your web app's localization health with AI.

***

### 🚀 What is this?

This is an **Apify Actor** that acts as your automated QA engineer for internationalization (i18n). It crawls your website, detects every piece of text, and uses the power of **Lingo.dev** to verify if your content is truly localized or if you're serving "English fallbacks" to your Spanish users.

#### ✨ Key Features

- **🕵️‍♂️ Smart Crawling**: Navigates your site automatically (configurable depth).
- **🧠 AI Verification**: Uses [Lingo.dev](https://www.lingo.dev/) to distinguish between intended English terms (like brand names) and actual missing translations.
- **⚡ Fast Batch Analysis**: Processes hundreds of text items in parallel using intelligent batching.
- **📊 Localization Score**: Gives you a health score (0-100) for each language.
- **📝 Actionable Reports**:
  - **HTML Dashboard**: Visual report with red/green indicators.
  - **JSON/CSV Exports**: Ready for your developers to fix.
  - **i18n JSON Generation**: Auto-generates the missing translation files for you!

***

### 🛠️ How it Works

1. **Crawl**: The actor starts at your entry URL and visits `maxPages`.
2. **Extract**: It scrapes visible text from buttons, headings, labels, and paragraphs.
3. **Analyze**:
   - Detects the language of each text block.
   - Identifies **Fallback Text** (English on a non-English page).
   - Identifies **Mixed Language** content.
   - Checks for **Broken Placeholders** (e.g., `Hello {{user}}`).
4. **Verify & Suggest**: Calls the Lingo.dev API to confirm issues and **generate accurate translation suggestions**.
5. **Report**: Outputs a detailed health score and artifacts.

***

### 📦 Output Example

You get a clean **HTML Report** in the Apify Key-Value store:

| Type | Found Text | AI Suggestion |
| :--- | :--- | :--- |
| <span style="background:#fff3cd;padding:2px 5px;border-radius:3px">Fallback</span> | `Subscribe Now` | `Jetzt abonnieren` |
| <span style="background:#f8d7da;padding:2px 5px;border-radius:3px">Mixed</span> | `Welcome to my website` | `Bienvenido a mi sitio web` |

***

### 🏃‍♂️ Running on Apify

1. Go to the [Apify Console](https://console.apify.com/).
2. Select this Actor.
3. **Input Configuration**:
   - `url`: The starting URL of your app.
   - `languages`: List of target languages (e.g., `['es', 'fr', 'de']`).
   - `lingoApiKey`: Your API key from Lingo.dev.
4. **Start** the run! 🏁

***

### 💻 Local Development

Want to run it locally?

```bash
## 1. Clone the repo
git clone https://github.com/vikashvsp/Global-App-Localization-Health-Checker.git
cd Global-App-Localization-Health-Checker

## 2. Install dependencies
pip install -r requirements.txt

## 3. Create an INPUT.json in storage/key_value_stores/default/
## (See .actor/input_schema.json for format)

## 4. Run it
python -m src.main
```

### 🤝 Contributing

Found a bug? Want to add support for Next.js i18n routing?
PRs are welcome! Let's make the web truly global. 🌐

***

*Built with ❤️ using [Apify](https://apify.com) & [Lingo.dev](https://lingo.dev)*

# Actor input Schema

## `sourceType` (type: `string`):

Source of content to check (website or i18n JSON)

## `url` (type: `string`):

The URL of the website to crawl or the JSON file URL

## `languages` (type: `array`):

List of language codes to check against

## `baseLanguage` (type: `string`):

The primary language of the source (usually 'en')

## `maxPages` (type: `integer`):

Maximum number of pages to crawl

## `lingoApiKey` (type: `string`):

Your Lingo.dev API key for suggestions and scoring

## Actor input object example

```json
{
  "sourceType": "website",
  "url": "https://example.com",
  "languages": [
    "en",
    "hi",
    "es",
    "fr"
  ],
  "baseLanguage": "en",
  "maxPages": 5
}
```

# Actor output Schema

## `detailedReport` (type: `string`):

Full JSON list of all detected issues

## `csvReport` (type: `string`):

Downloadable CSV spreadsheet of issues

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://example.com",
    "languages": [
        "en",
        "hi",
        "es",
        "fr"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eager_cornet/global-app-localization-health-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "url": "https://example.com",
    "languages": [
        "en",
        "hi",
        "es",
        "fr",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("eager_cornet/global-app-localization-health-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://example.com",
  "languages": [
    "en",
    "hi",
    "es",
    "fr"
  ]
}' |
apify call eager_cornet/global-app-localization-health-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=eager_cornet/global-app-localization-health-checker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lbEgHjl8AruwI3pji/builds/WStKWEQStk78JlFob/openapi.json
