en

Calling this function will return the default English 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 english = en();

Override Locale

const english = en({
connectWallet: {
signIn: "Sign in!",
},
});

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

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

Parameters

Returns