Urdu translation for DataTables

  • Author: Zafar Subzwari
  • Author: Afrasiyab Haider (Arcocia)
  • Author: Mubashir Wazir
  • Author: umarbaig
  • Author: Waqas Vadar
Language Plug-in for Urdu

Use

There are a number of ways to make use of this translation in your DataTables.

Browser loading / CDN

Loading DataTables' language information directly in the browser is done with the .json file:

JS

You DataTables initialisation might look like this:

var table = new DataTable('#myTable', {
    language: {
        url: '//cdn.datatables.net/plug-ins/2.0.3/i18n/ur.json',
    },
});

ES modules

If you are using ES modules (e.g. with Vite or similar bundler), then can use the datatables.net-plugins package (.mjs files), which this translation is available in. In such a case your initialisation code might look like:

import DataTable from 'datatables.net';
import language from 'datatables.net-plugins/i18n/ur.mjs';

var table = new DataTable('#myTable', {
    language,
});

CommonJS

If you are using CommonJS (i.e. in an older version of Node or Webpack), the translation files can be loaded in from the .js files which will return the JSON structure for the translation (note that unlike the other DataTables plug-ins it does not return a function to be executed - just a JSON object):

var $ = require('jquery');
var DataTable = require('datatables.net')(window, $);
var language = require('datatables.net-plugins/i18n/ur.js');

var table = new DataTable('#myTable', {
    language: language,
});

Plug-in code


{
    "processing": "ہے جاري عملدرامد...",
    "lengthMenu": "دکہائين شقيں کي (_MENU_) فہرست",
    "zeroRecords": "ملے نہيں مفروضات جلتے ملتے کوئ",
    "info": "فہرست کي تک _END_ سے _START_ سے ميں _TOTAL_ فہرست پوري ہے نظر پيش",
    "infoEmpty": "فہرست کي تک 0 سے 0 سے ميں 0 قل ہے نظر پيشّ",
    "infoFiltered": "(فہرست ہوئ چھني سے ميں _MAX_ قل)",
    "search": "کرو تلاش:",
    "paginate": {
        "first": "پہلا",
        "previous": "پچہلا",
        "next": "اگلا",
        "last": "آخري"
    },
    "aria": {
        "sortAscending": "چڑھائی ترتیب دیں",
        "sortDescending": "ترتیب نزولی"
    },
    "autoFill": {
        "cancel": "منسوخ کریں",
        "fill": "بھرنا",
        "fillHorizontal": "افقی پر کریں",
        "fillVertical": "عمودی کو بھرنے کے"
    },
    "buttons": {
        "collection": "جمع"
    },
    "datetime": {
        "previous": "پچھلی",
        "next": "اگلی",
        "hours": "گھنٹے",
        "minutes": "منٹس",
        "seconds": "سیکنڈز",
        "unknown": "نامعلوم",
        "amPm": [
            "صبح",
            "رات"
        ],
        "weekdays": [
            "اتوار",
            "سوموار",
            "منگل",
            "بدھ",
            "جمعرات",
            "جمعہ",
            "ہفتہ"
        ]
    },
    "emptyTable": "کوئی مواد دستیاب نہیں ہے"
}  

Contributing

If you have any ideas for how this plug-in can be improved please go to the translations plug-ins page and click the Contribute button to submit corrections and additions.