Localization

Localization

#Overview

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
01import { Magic } from 'magic-sdk';
02
03const magic = new Magic('API_KEY', { locale: 'es' });
04
05const did = await magic.auth.loginWithMagicLink({ email });

#Supported Languages

LanguageLocale Code
Afrikaansaf
Azerbaijaniaz
Bulgarianbg
Catalanca
Chinese (Simplified)zh_CN
Chinese (Traditional)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