Docs

Supporting Japanese and Spanish languages - React Native

Jorge

We at thirdweb pride ourselves on supporting an international community of developers. We understand the importance of localization to deliver a smooth user experience. Therefore, we're thrilled to announce that our React Native SDK now supports Japanese and Spanish!

New Features

  • You can now pass 'es' (Spanish) or 'ja' (Japanese) to the locale prop of the ThirdwebProvider:
import { ThirdwebProvider } from "@thirdweb-dev/react-native";
import React from "react";
const App = () => {
return (
<ThirdwebProvider locale={"es"}>
<AppInner />
</ThirdwebProvider>
);
};
  • You can also edit any string for a language by using the language specific function:
import { ThirdwebProvider, ja } from "@thirdweb-dev/react-native";
import React from "react";
const App = () => {
return (
<ThirdwebProvider
locale={ja({
connect_wallet: {
label: "ウォレットを接続",
},
})}
>
<AppInner />
</ThirdwebProvider>
);
};

We are open to contributions if you think a specific translation needs improvement. Feel free to open a PR in our GitHub repo :)

How to update

Update the @thirdweb-dev/react-native package to @thirdweb-dev/react-native@nightly and see our documentation full setup notes.

Happy coding!

Gracias.