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

# How to Send Localized Emails from Migma?

> Send each subscriber your email in their language. Add a language to your contacts, generate in multiple languages, and Migma handles the rest.

Migma lets you send a single campaign that automatically renders in each subscriber's language. No duplicate campaigns, no manual filtering — just one send.

Here's how it works in three steps.

***

## 1. Add Language to Your Contacts

Every contact in Migma can have a `language` field. You can set it in two ways:

<CardGroup cols={2}>
  <Card title="CSV Import" icon="file-csv">
    Include a `language` column in your CSV with [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) codes (e.g. `en`, `es`, `fr`, `de`). Migma maps it automatically during import.
  </Card>

  <Card title="Manual Edit" icon="pen">
    Open any contact and set their language from the contact details panel.
  </Card>
</CardGroup>

<Tip>
  **Auto-inference from country** — If a contact has a `country` but no explicit `language`, Migma infers the language automatically. For example, a contact in Spain gets `es`, France gets `fr`, and Germany gets `de`.
</Tip>

### Common Country → Language Mappings

| Country        | Code | Language |
| -------------- | ---- | -------- |
| United States  | US   | `en`     |
| United Kingdom | GB   | `en`     |
| Spain          | ES   | `es`     |
| Mexico         | MX   | `es`     |
| France         | FR   | `fr`     |
| Germany        | DE   | `de`     |
| Italy          | IT   | `it`     |
| Portugal       | PT   | `pt`     |
| Brazil         | BR   | `pt`     |
| Netherlands    | NL   | `nl`     |
| Japan          | JP   | `ja`     |
| South Korea    | KR   | `ko`     |

***

## 2. Generate Your Email in Multiple Languages

When creating an email, use the **language selector** in the generation panel to pick the languages you want (up to 4).

Write your prompt as usual — Migma's AI generates the email with all selected language versions built into a single template. Each version is fully localized, not just translated: subject lines, CTAs, and copy all adapt naturally.

<Info>
  You only write one prompt. The AI handles the rest — no need to generate each language separately.
</Info>

***

## 3. Send to Your Audience

When you send the campaign, Migma checks each subscriber's `language` field and renders the matching version automatically.

* A subscriber with `language: es` sees the Spanish version
* A subscriber with `language: fr` sees the French version
* Subscribers without a language set receive the **default** (first) language

That's it — one campaign, multiple languages, zero manual work.

***

## Learn More

<CardGroup cols={2}>
  <Card title="Multi-Language Contacts" icon="users" href="/audience/multi-language">
    Managing language preferences for your audience
  </Card>

  <Card title="CSV Upload Guide" icon="file-csv" href="/audience/csv-upload">
    How to import contacts with language data
  </Card>
</CardGroup>
