import OpenloginAdapter from "@web3auth/openlogin-adapter";
const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId, //Optional - Provide only if you haven't provided it in the Web3Auth Instantiation Code
network: "cyan", // Optional - Provide only if you haven't provided it in the Web3Auth Instantiation Code
uxMode: "popup",
whiteLabel: {
name: "Your App Name",
url: "https://yourapp.com",
logoLight: "https://web3auth.io/images/w3a-L-Favicon-1.svg",
logoDark: "https://web3auth.io/images/w3a-D-Favicon-1.svg",
defaultLanguage: "en", // en, de, ja, ko, zh, es, fr, pt, nl
dark: true, // whether to enable dark mode. defaultValue: false
theme: {
primary: "#00B4FF",
},
},
},
privateKeyProvider,
});
web3auth.configureAdapter(openloginAdapter);
Thank you! With your example, it is working now in test env.
In this reference Usage | DocumentationExtraLoginOptions extends BaseLoginOptions which includes a ui_locales param, but perhaps the API defined there is not applicable to Web3Auth implementation.
Also, question, language setting then only available in plans that include white labeling?
Side notes:
Some broken links related to this topic…
web3auth io /docs/whitelabel/login-modal
web3auth io /docs/whitelabel/user-flow-screens
Source of broken links is github, ie: github com /Web3Auth/web3auth-locales/blob/main/README.md