📁
DashboardJS
  • Getting Started
  • Configuration Options
    • Data
    • Config
      • Fetch API
      • Tabs
      • Record Settings
      • Fields
      • Actions
      • Internationalization & Localization
    • templateURL
    • appendTo
  • Dashboard Tools
    • Sorting
    • Filtering
    • View Modes
    • Pagination
  • Classes & APIs
    • Dashboard Overview
    • Dashboard.js
    • Tabs.js
    • Tab.js
    • Recordset.js
Powered by GitBook
On this page
  1. Configuration Options
  2. Config

Internationalization & Localization

You can translate any names, labels, fields, actions ....etc simply by adding a translation property to it's enclosing brace in the config object

const config = {
  tabs: {
    'User Profiles': {
      translation: {
        'ar-AE':'ملفات تعريف المستخدم'
      },
      recordSettings:{
        fields: {
          Date: { 
            name: "Date of Birth", 
            translation: { 
              "ar-AE": "السن" 
            }
          }
        }
        actions: {
          'More details...': {
            icon: 'info-icon',
            translation: {
              'ar-AE': 'معلومات أخرى'
            },
            onClick: function(){
              alert('Clicked More Info ...');
            }
          }
        }
      }
    }
  }
};

PreviousActionsNexttemplateURL

Last updated 1 year ago