Finnish translation for DataTables

  • Author: Seppo Äyräväinen
  • Author: Viktors Cvetkovs
  • Author: Niko Granö
  • Author: Colin Marks
  • Author: apaa
Language Plug-in for Finnish

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

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

Plug-in code


{
    "emptyTable": "Ei näytettäviä tuloksia.",
    "infoEmpty": "Näytetään 0 - 0 (yhteensä 0)",
    "infoFiltered": "(suodatettu _MAX_ tuloksen joukosta)",
    "infoThousands": ",",
    "lengthMenu": "Näytä kerralla _MENU_ riviä",
    "loadingRecords": "Ladataan...",
    "processing": "Hetkinen...",
    "search": "Etsi:",
    "zeroRecords": "Tietoja ei löytynyt",
    "paginate": {
        "first": "Ensimmäinen",
        "last": "Viimeinen",
        "next": "Seuraava",
        "previous": "Edellinen"
    },
    "aria": {
        "sortAscending": ": lajittele sarake nousevasti",
        "sortDescending": ": lajittele sarake laskevasti"
    },
    "select": {
        "rows": {
            "_": "Valittuna %d riviä",
            "1": "Valittuna vain yksi rivi"
        }
    },
    "buttons": {
        "copy": "Kopioi",
        "copySuccess": {
            "1": "Yksi rivi kopioitu leikepöydälle",
            "_": "%d riviä kopioitu leikepöydälle"
        },
        "copyTitle": "Kopioi leikepöydälle",
        "copyKeys": "Paina <i>ctrl<\/i> tai <i>⌘<\/i> + <i>C<\/i> kopioidaksesi taulukon arvot<br> leikepöydälle. <br><br>Peruuttaaksesi klikkaa tähän tai Esc.",
        "colvisRestore": "Palauta oletusasetukset"
    },
    "info": "Näytetään rivit _START_ - _END_ (yhteensä _TOTAL_)",
    "autoFill": {
        "cancel": "Peruuta"
    },
    "datetime": {
        "previous": "Edellinen",
        "next": "Seuraava",
        "hours": "Tunnit",
        "minutes": "Minuutit",
        "seconds": "Sekunnit",
        "unknown": "-",
        "amPm": [
            "ap",
            "ip"
        ],
        "weekdays": [
            "Su",
            "Ma",
            "Ti",
            "Ke",
            "To",
            "Pe",
            "La"
        ],
        "months": [
            "Tammikuu",
            "Helmikuu",
            "Maaliskuu",
            "Huhtikuu",
            "Toukokuu",
            "Kesäkuu",
            "Heinäkuu",
            "Elokuu",
            "Syyskuu",
            "Lokakuu",
            "Marraskuu",
            "Joulukuu"
        ]
    },
    "editor": {
        "close": "Sulje",
        "create": {
            "button": "Uusi",
            "title": "Otsikko",
            "submit": "Tallenna"
        },
        "edit": {
            "button": "Muokkaa",
            "title": "Otsikko",
            "submit": "Tallenna"
        },
        "remove": {
            "button": "Poista",
            "title": "Otsikko",
            "submit": "Poista"
        }
    }
}  

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.