Customizing copy in the SDK
The SDK allows you to customize almost all of the text it displays. You do so using the “locale” prop on the DynamicContextProvider.
In this short guide we will update some text and along the way, learn how to format the value that locale expects!
Let’s imagine we want to change the “Select your wallet” text in the image below to “Find your favourite”
We simply need to inspect that element in the browser, and find the key that is being used to display that text by checking the copykey
attribute on that element. In this case, you’ll see that it is “dyn_login.title.all_wallet_list”.
Now we’ll create our locale object, and add a new key with that value. It always starts with a key of the language you’re editing, in this case “en” for English. Then we add the key that we found in the browser, and then the value we want to replace it with.
We just support “en” for now, so that will be the only valid key for the LocaleResource object.
We’re now ready to pass our locale object to the DynamicContextProvider like so:
That’s it! You can now customize the text in the SDK to your heart’s content. Note that if you ever want to see the full list of possible keys, you can find them in the LocaleResource type reference.
Further resources
Was this page helpful?