i18n

Multi language support

We support English ('en'), Italian ('it'), French ('fr'), Spanish ('es'), German ('de'), Chinese ('zh'), Japanese ('ja'), and Russian ('ru').

The default language is English ('en'), and it is the fallback if the iso code is not recognized

To change the language and the i18n dataset you have to pass them to the dappKitUI configuration

const vechainDAppKitOptions: DAppKitUIOptions = {
    nodeUrl: 'https://testnet.vechain.org/',
    genesis: 'test',
    // set the current language
    language: 'it',
    // you can also pass a new i18n dataset to tailor or add new languages
    i18n: {
        "custom-language":  {
            'connect-wallet': '...',
            'copy-to-clipboard': '...',
            connected: '...',
            disconnect: '...',
            'opening-veworld': '...',
            'get-veworld': '...',
        },
    }
};

DAppKitUI.configure(vechainWalletKitOptions);

this is the default i18n dataset:

Last updated

Was this helpful?