VeChain Docs
  • Welcome to VeChain
  • Blockchain Basics
    • Introduction to blockchain
    • Introduction to digital property
    • The evolution of the internet
  • Introduction to VeChain
    • About the VeChain blockchain
      • Consensus Deep Dive
      • Governance
    • Dual-Token Economic Model
      • VeChain (VET)
      • VeThor (VTHO)
    • Acquire VeChain Assets
    • Sustainability
  • Core Concepts
    • Networks
      • Thor Solo Node
      • Testnet
      • Mainnet
    • Nodes
      • Node Rewards Programme
    • Blocks
      • Block Model
    • Transactions
      • Transaction Model
      • Transaction Fees
      • Transaction Calculation
      • Meta Transaction Features
        • Transaction Uniqueness
        • Controllable Transaction Lifecycle
        • Clauses (Multi-Task Transaction)
        • Fee Delegation
          • Multi-Party Payment (MPP)
          • Designated Gas Payer (VIP-191)
        • Transaction Dependency
    • Block Explorers
    • Wallets
      • VeWorld
        • User Guide
          • Setup
          • Wallet
          • Signing
          • Activities
          • Settings
        • FAQ
      • Sync2
        • User Guide
          • Setup
          • Wallet
          • Signing
          • Activities
          • Settings
        • FAQ
      • Sync
        • User Guide
          • Wallet
          • Ledger Device
          • Browser dApps and web
          • Interact with dApps
          • Activities
          • Settings
          • Report an Issue
          • Contributing
        • FAQ
    • EVM Compatibility
      • VeChain Modifications
      • Methodology
      • Test Coverage
        • Gas model
        • Raw transaction
        • hardhat specific
          • Ganache failures
          • evm_increaseTime
        • Failures in constructor
        • eth_sign
        • Contract address prediction
        • BadBeacon proxy address at 0x1
      • How to Recreate
      • Additional Information
        • Using Governance Contracts
        • ERC1820/ERC777 Testnet
        • Delegate Options
    • Account Abstraction
      • UserOperation
      • Bundler
      • EntryPoint Contract
      • Account Factory Contract
      • Paymaster Contract
    • Token Bound Accounts
  • How to run a node
    • Nodes
    • How to run a Thor Solo Node
    • Custom Network
    • Connect Sync2 to a Thor Solo Node
  • Developer Resources
    • Getting Started
    • How to build on VeChain
      • Connect to the Network
      • Read Data
        • Read Blocks
        • Read Transactions
        • Read Accounts
        • States & Views
        • Events & Logs
        • VET Transfers
      • Write Data
        • Transactions
        • Fee Delegation
      • Listen to Changes
        • Events
        • VET Transfers
        • Transactions
        • Blocks
        • Beats
      • Build with Hardhat
      • Utilities
        • BigInt and Unit-Handling
        • Name Service Lookups
    • Example dApps
      • Buy me a Coffee
      • Token Bound Accounts
      • PWA with Privy and Account Abstraction
    • EVM Compatibility for Developers
      • Key Architectural Differences and Optimizations
      • Practical Implications for Developers: Key Considerations
      • RPC Methods (Detailed Breakdown)
      • Frequently Asked Questions (FAQs)
      • VeChain Blockchain Specifications
      • Key Differences Between VeChain and Ethereum (Summary)
      • Best Practices for Developing on VeChainThor
    • How to verify Address-Ownership
      • Next.js Session Verification
    • Debug Reverted Transactions
    • Account Abstraction
    • VIP-191: Designated Gas Payer
      • How to Integrate VIP-191 (I)
      • How to Integrate VIP-191 (II)
      • How to Integrate VIP-191 (III)
    • Index with Graph Node
      • Setup with Docker
      • Index with OpenZeppelin
        • Create Subgraph Project
        • Configure Contracts
        • Deploy Subgraph and start Indexing
        • Track Subgraph Indexing
        • Access Subgraph
        • Update Subgraph
    • SDKs & Providers
      • SDK
        • Architecture
        • Accounts
        • Bloom Filter
        • Certificates
        • Contracts
        • Cryptography
        • Debug
        • Encoding
        • Polls
        • Subscriptions
        • Thor Client
        • Transactions
      • Thor DevKit
        • Installation
        • Usage
          • Cryptography
          • Accounts
          • Encoding
          • Transactions
          • Certificates
          • Bloom Filter
      • DApp Kit
        • v2
          • Installation
          • React
            • Installation
            • Usage
          • Vanilla JS
            • Installation
            • Usage
          • Core
            • Installation
            • Usage
          • Theme Variables
          • i18n
        • v1
          • Installation
          • React
            • Installation
            • Usage
          • Vanilla JS
            • Installation
            • Usage
          • Core
            • Installation
            • Usage
          • Theme Variables
          • i18n
          • Node Polyfills
          • V0 to V1
        • v0
          • Installation
          • Usage
          • React
            • Installation
            • Usage
          • Vanilla (UI)
            • Installation
            • Usage
          • Styles (UI)
          • i18n
      • DevPal
      • Web3-Providers-Connex
        • Installation
        • Usage
      • Connex
        • Installation
        • API Specification
    • Frameworks & IDEs
      • Hardhat
      • Remix
    • Built-in Contracts
    • VORJ
    • Useful Links
  • How to contribute
Powered by GitBook
On this page

Was this helpful?

  1. Developer Resources
  2. SDKs & Providers
  3. DApp Kit
  4. v1

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:

 {
    en: {
        'connect-wallet': 'Connect Wallet',
        'copy-to-clipboard': 'Copy to Clipboard',
        connected: 'Connected',
        disconnect: 'Disconnect',
        'opening-veworld': 'Opening VeWorld...',
        'get-veworld': 'Get VeWorld',
        'sign-connection-certificate-button': 'Sign Certificate',
        'sign-connection-certificate-description':
            'Proof address is required, please sign a certificate to continue',
        'waiting-signature': 'Waiting for signature...',
    },
    it: {
        'connect-wallet': 'Connetti il Wallet',
        'copy-to-clipboard': 'Copia',
        connected: 'Connesso',
        disconnect: 'Disconnetti',
        'opening-veworld': 'Apertura di VeWorld...',
        'get-veworld': 'Ottieni VeWorld',
        'sign-connection-certificate-button': 'Firma Certificato',
        'sign-connection-certificate-description':
            'È richiesta una firma di certificato per connettersi al wallet.',
        'waiting-signature': 'Attendo firma...',
    },
    fr: {
        'connect-wallet': 'Connecter le portefeuille',
        'copy-to-clipboard': 'Copier dans le presse-papiers',
        connected: 'Connecté',
        disconnect: 'Déconnecter',
        'opening-veworld': 'Ouverture de VeWorld...',
        'get-veworld': 'Obtenir VeWorld',
        'sign-connection-certificate-description':
            'Une signature de certificat est requise pour se connecter au portefeuille.',
        'sign-connection-certificate-button': 'Signer le certificat',
        'waiting-signature': 'En attente de la signature...',
    },
    es: {
        'connect-wallet': 'Conectar billetera',
        'copy-to-clipboard': 'Copiar al portapapeles',
        connected: 'Conectado',
        disconnect: 'Desconectar',
        'opening-veworld': 'Abriendo VeWorld...',
        'get-veworld': 'Obtener VeWorld',
        'sign-connection-certificate-description':
            'Se requiere una firma de certificado para conectarse a la billetera.',
        'sign-connection-certificate-button': 'Firmar certificado',
        'waiting-signature': 'Esperando firma...',
    },
    de: {
        'connect-wallet': 'Wallet verbinden',
        'copy-to-clipboard': 'In Zwischenablage kopieren',
        connected: 'Verbunden',
        disconnect: 'Trennen',
        'opening-veworld': 'VeWorld wird geöffnet...',
        'get-veworld': 'VeWorld erhalten',
        'sign-connection-certificate-description':
            'Eine Zertifikatssignatur ist erforderlich, um eine Verbindung zur Brieftasche herzustellen.',
        'sign-connection-certificate-button': 'Zertifikat signieren',
        'waiting-signature': 'Warte auf Signatur...',
    },
    zh: {
        'connect-wallet': '连接钱包',
        'copy-to-clipboard': '复制到剪贴板',
        connected: '已连接',
        disconnect: '断开连接',
        'opening-veworld': '正在打开 VeWorld...',
        'get-veworld': '获取 VeWorld',
        'sign-connection-certificate-description': '连接钱包需要签名证书。',
        'sign-connection-certificate-button': '签名证书',
        'waiting-signature': '等待签名...',
    },
    ja: {
        'connect-wallet': 'ウォレットに接続',
        'copy-to-clipboard': 'クリップボードにコピー',
        connected: '接続されました',
        disconnect: '切断する',
        'opening-veworld': 'VeWorld を開いています...',
        'get-veworld': 'VeWorld を取得',
        'sign-connection-certificate-description':
            'ウォレットに接続するには証明書の署名が必要です。',
        'sign-connection-certificate-button': '証明書に署名',
        'waiting-signature': '署名を待っています...',
    },
    ru: {
        'connect-wallet': 'Подключить кошелек',
        'copy-to-clipboard': 'Копировать в буфер обмена',
        connected: 'Подключено',
        disconnect: 'Отключить',
        'opening-veworld': 'Открытие VeWorld...',
        'get-veworld': 'Получить VeWorld',
        'sign-connection-certificate-description':
            'Для подключения к кошельку требуется подпись сертификата.',
        'sign-connection-certificate-button': 'Подписать сертификат',
        'waiting-signature': 'Ожидание подписи...',
    },
};
PreviousTheme VariablesNextNode Polyfills

Last updated 1 year ago

Was this helpful?