Docs

es

Calling this function will return the default Spanish locale object to be set on ThirdwebProvider to localize the thirdweb components.

You can also overrides parts of the default locale object by passing an object with the same structure as the default locale object and only those parts will be overridden.

Example

Use default Locale

const spanish = es();

Override Locale

const spanish = es({
connectWallet: {
signIn: "Iniciar sesión",
},
});

Pass it to ThirdwebProvider 's locale prop to localize the thirdweb components.

function Example() {
return (
<ThirdwebProvider locale={spanish}>
<App />
</ThirdwebProvider>
);
}

Parameters

Returns