Malay translation for DataTables

  • Author: Mohamad Zharif
  • Author: ibnuyahya
  • Author: Shah Erhan
  • Author: resakse
  • Author: Nama Kamu
  • Author: Fareez
Language Plug-in for Malay

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

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

Plug-in code


{
    "emptyTable": "Tiada data",
    "info": "Paparan dari _START_ hingga _END_ dari _TOTAL_ rekod",
    "infoEmpty": "Paparan 0 hingga 0 dari 0 rekod",
    "infoFiltered": "(Ditapis dari jumlah _MAX_ rekod)",
    "infoThousands": ",",
    "lengthMenu": "Papar _MENU_ rekod",
    "loadingRecords": "Diproses...",
    "processing": "Sedang diproses...",
    "search": "Carian:",
    "zeroRecords": "Tiada padanan rekod yang dijumpai.",
    "paginate": {
        "first": "Pertama",
        "previous": "Sebelum",
        "next": "Seterusnya",
        "last": "Akhir"
    },
    "aria": {
        "sortAscending": ": diaktifkan kepada susunan lajur menaik",
        "sortDescending": ": diaktifkan kepada susunan lajur menurun"
    },
    "autoFill": {
        "cancel": "batal",
        "fill": "Isi semua sel dengan <i>%d<\/i>",
        "fillHorizontal": "Isi sel secara mendatar",
        "fillVertical": "Isi sel secara menegak",
        "info": "Maklumat"
    },
    "buttons": {
        "collection": "Koleksi <span class=\"ui-button-icon-primary ui-icon ui-icon-triangle-1-s\"><\/span>",
        "copy": "Salin",
        "print": "Cetak",
        "colvis": "Kolum Pilihan",
        "colvisRestore": "Kembalikan Penglihatan",
        "copyKeys": "Tekan &lt;i&gt;ctrl&lt;\/i&gt; atau &lt;i&gt;u2318&lt;\/i&gt; + &lt;i&gt;C&lt;\/i&gt; untuk menyalin maklumat jadual ke papan keratan sistem anda.&lt;br&gt;&lt;br&gt;Untuk batak, tekan mesej ini atau tekan escape.",
        "copySuccess": {
            "1": "1 baris disalian ke papan keratan",
            "_": "%ds baris disalin ke papan keratan"
        },
        "copyTitle": "Salin ke Papan Klip",
        "pageLength": {
            "-1": "Paparkan semua baris",
            "1": "Papar 1 baris",
            "_": "Paparkan %d baris"
        }
    },
    "thousands": ",",
    "select": {
        "cells": {
            "1": "1 sel terpilih",
            "_": "%d sel terpilih"
        },
        "columns": {
            "1": "1 kolum terpilih",
            "_": "%d kolum terpilih"
        },
        "rows": {
            "1": "1 baris terpilih",
            "_": "%d baris terpilih"
        }
    },
    "editor": {
        "close": "Tutup",
        "create": {
            "button": "Tambah",
            "title": "Cipta entri baru",
            "submit": "Cipta"
        },
        "edit": {
            "button": "Pinda",
            "title": "Pinda entri",
            "submit": "Kemaskini"
        },
        "remove": {
            "button": "Padam",
            "title": "Padam",
            "submit": "Padam",
            "confirm": {
                "_": "Adakah anda pasti untuk menghapus %d baris?",
                "1": "Adakah anda pasti untuk menghapus 1 baris?"
            }
        },
        "error": {
            "system": "Terdapat ralat sistem berlaku (&lt;a target=\"\\\" rel=\"nofollow\" href=\"\\\"&gt;Maklumat Lanjut&lt;\/a&gt;)."
        },
        "multi": {
            "title": "Pelbagai nilai",
            "info": "Item ini mengandungi pelbagai nilai untuk input ini. Untuk pinda and setkan kesemua item untuk input ini kepada nilai yang sama, tekan sini, sebaliknya, maklumat setiap satu akan dikekalkan",
            "restore": "Buat Asal",
            "noMulti": "Input ini boleh di ubah setiap satu, tetapi bukan sebahagian daripada kumpulan"
        }
    },
    "decimal": ".",
    "searchPlaceholder": "Contoh",
    "datetime": {
        "previous": "Sebelum",
        "next": "Seterusnya",
        "hours": "Jam",
        "minutes": "Minit",
        "seconds": "Saat",
        "weekdays": [
            "Ahd",
            "Isn",
            "Sel",
            "Rab",
            "Kha",
            "Jum",
            "Sab"
        ],
        "months": [
            "Januari",
            "Februari",
            "Mac",
            "April",
            "Mei",
            "Jun",
            "Julai",
            "Ogos",
            "September",
            "Oktober",
            "November",
            "Disember"
        ]
    }
}  

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.