Nepali translation for DataTables

  • Author: Bishwo Adhikari
  • Author: ashokool
Language Plug-in for Nepali

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/ne.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/ne.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/ne.js');

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

Plug-in code


{
    "emptyTable": "टेबलमा डाटा उपलब्ध भएन",
    "info": "_TOTAL_ रेकर्ड मध्य _START_ देखि _END_ रेकर्ड देखाउंदै",
    "infoEmpty": "0 मध्य 0 देखि 0 रेकर्ड देखाउंदै",
    "infoFiltered": "(_MAX_ कुल रेकर्डबाट छनौट गरिएको)",
    "infoThousands": ",",
    "lengthMenu": " _MENU_ रेकर्ड देखाउने ",
    "loadingRecords": "लोड हुँदैछ...",
    "processing": "प्रगति हुदैंछ ...",
    "search": "खोजी:",
    "zeroRecords": "कुनै मिल्ने रेकर्ड फेला परेन",
    "paginate": {
        "first": "प्रथम",
        "previous": "पछिल्लो",
        "next": "अघिल्लो",
        "last": "अन्तिम"
    },
    "aria": {
        "sortAscending": ": अगाडिबाट अक्षरात्मक रूपमा क्रमबद्ध गराउने",
        "sortDescending": ": पछाडिबाट अक्षरात्मक रूपमा क्रमबद्ध गराउने"
    },
    "autoFill": {
        "cancel": " रद्द गर्नुहोस्",
        "fill": "भर्न",
        "fillHorizontal": "तेर्सो भर्नुहोस्",
        "fillVertical": " ठाडो भर्नुहोस्",
        "info": "जानकारी"
    },
    "buttons": {
        "collection": "सङ्कलन",
        "colvis": "कोल्विस",
        "colvisRestore": "कोल्विस पुनर्स्थापना",
        "copy": "कपी"
    },
    "searchPlaceholder": "प्लेसहोल्डर खोज्नुहोस्",
    "thousands": " हजारौं",
    "datetime": {
        "previous": "अघिल्लो",
        "next": "अर्को",
        "hours": "घण्टा",
        "minutes": "मिनेट",
        "seconds": "सेकेन्ड",
        "unknown": "अज्ञात"
    },
    "editor": {
        "close": "बन्द",
        "create": {
            "button": "बटन सिर्जना गर्नुहोस् ",
            "title": "शीर्षक सिर्जना गर्नुहोस् ",
            "submit": "पेश गर्न सिर्जना गर्नुहोस्"
        },
        "edit": {
            "button": "बटन सम्पादन ",
            "title": "शीर्षक सम्पादन गर्नुहोस्"
        }
    }
}  

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.