# Flutter plurals for German

German is the locale `de-DE` for the check; the market code for Germany in MCP and library calls is `de`.

## Run the check

```sh
npx threefold check . --markets de-DE
```

The check runs on your machine. Source code is not uploaded; only `--upload` sends the report (not the code). Exit code `1` means the verdict is `incomplete`.

If `npx` says the `threefold` package does not exist, the npm package has not been published yet (checked 12 November 2026), and no local scan through threefold is available. The hosted MCP server cannot read your disk. What does work: connect it and call `check` with `what: "repo"` (below), or fetch the public rules catalogue (below). Both return the rules and criteria for your agent to apply to the files it already has open. That is your agent grading against threefold's criteria, not a scan result, and it gives no verdict.

## What the check looks at

Files this page is about: `.arb` files, `l10n.yaml`, `pubspec.yaml`, `main.dart`.

### CHK-FLT-001: Flutter ARB Parity & Placeholder Typing

- What it looks for: Ensures target .arb files exist for target markets, match template keys, and preserve @key placeholder types (String, num, DateTime).
- Severity `blocker`, verified `static`, measured status `production`.
- Source: <https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization>

### CHK-CORE-005: CLDR Plural Categories Compliance

- What it looks for: Ensures plural translations supply the required Unicode CLDR plural categories for each target language.
- Severity `error`, verified `static`, measured status `production`.
- Source: <https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html>

## Plural categories for German

CLDR 45.0.0 gives `de` 2 cardinal categories: `one`, `other`. Each plural message for `de-DE` supplies those forms. Source: <https://raw.githubusercontent.com/unicode-org/cldr-json/45.0.0/cldr-json/cldr-core/supplemental/plurals.json> (copied in `modules/product/i18n/data/cldr-plurals.json`).

## What it reports on a small example

The generator of this page ran the check on a 4-file example project with `--markets de-DE`. These are the results for this page's checks, as the check returned them. Overall verdict on the example: `incomplete`.

**CHK-FLT-001**: `fail`

- `fail` in `lib/l10n/app_de.arb`: Placeholder "count" type mismatch in lib/l10n/app_de.arb. Expected "int", found "String". Fix: Update placeholder "count" type to match template ("int").
- `fail` in `lib/l10n/app_de.arb`: Key "greeting" missing in Flutter ARB file lib/l10n/app_de.arb. Fix: Add "greeting" to lib/l10n/app_de.arb.

**CHK-CORE-005**: `not_applicable` (it found nothing it reads in this example; that is not a pass)

- `not_applicable`: No localized files with plural definitions found.

The example project:

`l10n.yaml`

```yaml
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
```

`lib/l10n/app_de.arb`

```json
{
  "@@locale": "de",
  "itemCount": "{count, plural, one{{count} Artikel} other{{count} Artikel}}",
  "@itemCount": {
    "placeholders": {
      "count": {
        "type": "String"
      }
    }
  }
}
```

`lib/l10n/app_en.arb`

```json
{
  "@@locale": "en",
  "itemCount": "{count, plural, one{{count} item} other{{count} items}}",
  "@itemCount": {
    "placeholders": {
      "count": {
        "type": "int"
      }
    }
  },
  "greeting": "Hello"
}
```

`pubspec.yaml`

```yaml
name: demo
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
flutter:
  generate: true
```

## Call threefold from an agent

The MCP `check` tool with `what: "repo"`:

```json
{
  "what": "repo",
  "market": "de"
}
```

On the hosted server (`https://api.threefold.eco/mcp`) this returns the market's readiness rules and criteria for the agent to apply to the open files; it receives no files and returns no verdict. The local stdio server, which also scans the path you give it, runs from a checkout of the threefold repository and is not publicly distributed yet.

The rules catalogue is public and needs no account:

```sh
curl -s "https://api.threefold.eco/api/i18n/rules?platform=flutter&market=de-DE" -H "X-Threefold-Docs-Page: flutter-plurals-for-german"
```

## The skill

Follow the `localise-app` skill: run the check, fix every `fail`, re-run until the verdict is `complete` or `complete_static`, then show the person the human-review list. threefold returns evidence and criteria; the agent grades the files; nobody invents a pass; legal items stay on the human-review list. Read it at [https://threefold.eco/skills/localise-app.md](https://threefold.eco/skills/localise-app.md). The Claude Code and Codex plugins bundle the same skill.

## Questions

### Does threefold translate the strings?

The check does not. It reports what is missing or wrong; your agent or a person writes the strings. threefold has a separate, stateless page-localisation call ([Page localisation](https://threefold.eco/docs/page-localisation.md)) that sends page text to a model supplier; a person reviews its output.

### Does the source leave the machine?

Not with `npx threefold check`. It reads files locally. `--upload` sends the report, not the code. The hosted `check` with `what: "repo"` receives no files: it returns rules and criteria only.

### Which market code do I pass?

The locale tag (`de-DE`) to `npx threefold check --markets`; the market code (`de`) to the MCP `check` and `market` tools and the library endpoints.

### Which plural categories does German need?

`one`, `other` (CLDR 45.0.0, copied in `modules/product/i18n/data/cldr-plurals.json`).

## What this page will not say

This page does not say an app is compliant, certified or a percentage ready. The check reports `complete`, `complete_static` or `incomplete`, and lists human-review items next to the verdict without counting them as done.

## Connect, once

Claude Code:

```sh
claude mcp add --transport http --scope user threefold https://api.threefold.eco/mcp
```

Cursor: open `cursor://anysphere.cursor-deeplink/mcp/install?name=threefold&config=eyJ0aHJlZWZvbGQiOnsidXJsIjoiaHR0cHM6Ly9hcGkudGhyZWVmb2xkLmVjby9tY3AifX0=`.

Codex, VS Code, Gemini CLI, OpenCode, Claude.ai, ChatGPT and Grok: [Install and connect](https://threefold.eco/docs/install.md). To try it without an account, use `https://api.threefold.eco/mcp?keyless=1`: library reads only, capped per IP address per day ([pricing](https://threefold.eco/pricing.md)).
