> ## Documentation Index
> Fetch the complete documentation index at: https://developer.dittowords.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These are Ditto's developer docs. Ditto is a single source of truth for product copy across design, review, localization, and code.
> The first step on any codebase is a scan: https://developer.dittowords.com/get-started/scan-your-repo.md. That page also covers reviewing the style guide Ditto drafts from the scan. After it, the follow-on guides are Connect Figma files and Set up localization (under /guides/) and Connect the Ditto MCP (the Setup page of the MCP reference).
> Two different MCP servers: the Ditto MCP server at https://api.dittowords.com/v2/mcp gives an agent a workspace's text and style guide rules; the documentation MCP server at https://developer.dittowords.com/mcp searches these docs.
> Prefer logging in with a Ditto account (npx -y @dittowords/cli@latest login; OAuth in MCP clients) over API keys. API keys are for CI and headless clients only.
> Commands are complete as written and use npx -y @dittowords/cli@latest; nothing needs a global install.

# Example apps

> Reference apps that connect the DittoPay sample project to React, iOS, and Android to show Ditto's string files, developer IDs, and variants in a working app.

Each Ditto workspace starts with a sample project (**DittoPay Signup Flow**), a simple sign-up flow for a banking app with sample components, variants, variables, and plurals. The example repos below connect that sample project to a small frontend so you can see the CLI's string files, developer IDs, variants, and variable interpolation in a working app.

> [!WARNING]
>
> The example repos were built for the `4.x` CLI and use its config schema (`sources:`), and the iOS and Android repos have not been updated since 2023. They still run, but do not copy their configuration into a new project. For a new integration, [scan your own repo](https://developer.dittowords.com/get-started/scan-your-repo.md) and follow the current [CLI configuration](https://developer.dittowords.com/cli-reference/configuration.md).

![The DittoPay sample project in Ditto](https://mintcdn.com/ditto/WgRtoF9rLXWv6hNh/images/sample-proj.png?fit=max\&auto=format\&n=WgRtoF9rLXWv6hNh\&q=85\&s=176820751a83f310717f0887b3cb18d8)

## Repositories

Follow each repo's `README` to run it. All of them expect you to log in with `npx @dittowords/cli login` before pulling text; see [Install and log in](https://developer.dittowords.com/cli-reference/authentication.md).

> [card] [DittoPay: React](https://github.com/dittowords/ditto-react-demo)
>
> `ditto-react-demo` (default branch) uses the Ditto React SDK.

> [card] [DittoPay: React with i18next](https://github.com/dittowords/ditto-react-demo/tree/react-i18next)
>
> `ditto-react-demo`, branch `react-i18next`, uses the CLI's i18next output.

> [card] [DittoPay: iOS](https://github.com/dittowords/ditto-ios-demo)
>
> `ditto-ios-demo` uses `.strings` and `.stringsdict` files.

> [card] [DittoPay: Android](https://github.com/dittowords/ditto-android-demo)
>
> `ditto-android-demo` uses `strings.xml` resources.

## What they show

* How the CLI keeps text in sync from Ditto to a running app
* How library components are shared across projects and referenced by developer ID
* How variants (localization), plurals, and variables appear in each platform's string format

For the current equivalents, see [Set up localization](https://developer.dittowords.com/guides/set-up-localization.md) for format examples and [Files](https://developer.dittowords.com/cli-reference/files.md) for the exact output structure.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.