Usage
To initialize magic with a specific language, pass thelocale value to the Magic instance upon creation.
JavaScript


Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Magic allows you to customize the popup modal, email, and confirmation screen to any of our 30+ supported languages.
locale value to the Magic instance upon creation.
import { Magic } from "magic-sdk";
const magic = new Magic('API_KEY', { locale: 'es' });
const did = await magic.auth.loginWithMagicLink({ email });


| 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 |
Was this page helpful?