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

# Localization

> Magic allows you to customize the popup modal, email, and confirmation screen to any of our 30+ supported languages.

## Usage

To initialize magic with a specific language, pass the `locale` value to the `Magic` instance upon creation.

```javascript JavaScript icon="square-js" theme={null}
import { Magic } from "magic-sdk";

const magic = new Magic('API_KEY', { locale: 'es' });

const did = await magic.auth.loginWithMagicLink({ email });
```

<Frame>
  <img src="https://mintcdn.com/magic-newton/1GYf0YW8BthDpWqo/images/email.webp?fit=max&auto=format&n=1GYf0YW8BthDpWqo&q=85&s=0c5fb85b71647a85f354273f0be0e1db" alt="email" width="1200" height="761" data-path="images/email.webp" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/magic-newton/mA7B4icGsHcK07ZQ/images/modal.webp?fit=max&auto=format&n=mA7B4icGsHcK07ZQ&q=85&s=2d505139cc16f8ef1ca08cd96e04efe5" alt="modal" width="1200" height="761" data-path="images/modal.webp" />
</Frame>

## Supported Languages

|                       |                 |
| --------------------- | --------------- |
| **Language**          | **Locale Code** |
| Afrikaans             | `af`            |
| Azerbaijani           | `az`            |
| Bulgarian             | `bg`            |
| Catalan               | `ca`            |
| Chinese (Simplified)  | `zh_CN`         |
| Chinese (Traditional) | `zh_TW`         |
| Croatian              | `hr`            |
| Czech                 | `cs`            |
| Danish                | `da`            |
| Dutch                 | `nl`            |
| English               | `en`            |
| Estonian              | `et`            |
| Finnish               | `fi`            |
| French                | `fr`            |
| German                | `de`            |
| Greek                 | `el`            |
| Hungarian             | `hu`            |
| Indonesian            | `id`            |
| Italian               | `it`            |
| Japanese              | `ja`            |
| Korean                | `ko`            |
| Latvian               | `lv`            |
| Lithuanian            | `lt`            |
| Macedonian            | `mk`            |
| Norwegian             | `no`            |
| Polish                | `pl`            |
| Portuguese            | `pt`            |
| Romanian              | `ro`            |
| Russian               | `ru`            |
| Serbian               | `sr`            |
| Slovak                | `sk`            |
| Slovenian             | `sl`            |
| Spanish               | `es`            |
| Swedish               | `sv`            |
| Thai                  | `th`            |
| Turkish               | `tr`            |
| Vietnamese            | `vi`            |
| Welsh                 | `cy`            |
