Localization

Magic allows you to customize the popup modal, email, and confirmation screen to any of our 30+ supported languages. Just specify the locale when initiating Magic.

Supported Languages

LanguageLocale Code
Afrikaansaf
Azerbaijaniaz
Bulgarianbg
Catalanca
Chinese (PRC)zh_CN
Chinese (Taiwan)zh_TW
Croatianhr
Czechcs
Danishda
Dutchnl
Englishen
Estonianet
Finnishfi
Frenchfr
Germande
Greekel
Hungarianhu
Indonesianid
Italianit
Japaneseja
Koreanko
Latvianlv
Lithuanianlt
Macedonianmk
Norwegianno
Polishpl
Portuguesept
Romanianro
Russianru
Serbiansr
Slovaksk
Sloveniansl
Spanishes
Swedishsv
Thaith
Turkishtr
Vietnamesevi
Welshcy

Example

import { Magic } from 'magic-sdk';
const magic = new Magic('API_KEY', { locale: 'es' });
const did = await magic.auth.loginWithMagicLink({ email });