Localization
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
Language | Locale Code |
Afrikaans | af |
Azerbaijani | az |
Bulgarian | bg |
Catalan | ca |
Chinese (PRC) | zh_CN |
Chinese (Taiwan) | 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 |
#Example
Javascript
01import { Magic } from 'magic-sdk';
02
03const magic = new Magic('API_KEY', { locale: 'es' });
04
05const did = await magic.auth.loginWithMagicLink({ email });