๐ŸŒSupported Languages (Localization)

Picket supports automatic signing message translation into over 100 languages.

If you're using one of Picket's client-side libraries then localization is handled automatically for you based on a users' browser language setting.

If you are building using one of our server side libraries it's also easy to support signing message translation by simply passing the locale you would like to translate the signing message into.

Below is an example using our typescript library to translate a message for a user into Spanish.

const { nonce, statement } = await picket.nonce({ 
    walletAddress: "0x_wallet_address", 
    locale: "es",
    });
// the user-facing statement will be translated into Spanish
console.log(statment);

For more details on how to pass in this locale parameter, view the /nonce request reference.

If you have any trouble or just want to move faster with some help, feel free to reach out to us. We love to help.

Picket's locale identifiers follow the IETF BCP 47 language tag standard. Below is a list of supported locales.

Last updated