Select language - General customizations - Mercado Pago Developers
What are you looking for?

Do not know how to start integrating? 

Check the first steps

Select language

Client-Side

You can select the Brick language in two different ways: at the time of initialization of the Brick or via SDK.

Select language while initializing

To select the language when starting the Brick, insert the code below into your project paying attention to the locale parameter, which must be filled in with the defined language following the following pattern: es , pt-BR and en for Spanish, Portuguese and English respectively.

          
const settings = {
    ...,
    locale: 'en',
}

        
          
import { initMercadoPago } from '@mercadopago/sdk-react';
initMercadoPago('YOUR_PUBLIC_KEY', {locale: 'pt-BR'});

        

Select language via SDK

To select the language via SDK, insert the code below into your project and fill the locale parameter with the desired language following the pattern shown in the following table.

          
const mp = new MercadoPago('YOUR_PUBLIC_KEY', {
  locale: 'en-US',
})

        
          
import { initMercadoPago } from '@mercadopago/sdk-react';
initMercadoPago('YOUR_PUBLIC_KEY', {locale: 'pt-BR'});

        
LanguageCountryValue
SpanishArgentina'es-AR'
SpanishChile'es-CL'
SpanishColombia'es-CO'
SpanishMexico​​'es-MX'
SpanishVenezuela'es-VE'
SpanishUruguay'es-UY'
SpanishPeru'es-PE'
PortugueseBrazil'pt-BR'
EnglishU.S'en-US'