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
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 |