Skip to main content

Internationalization

Grid.js has support for multiple languages. Import your language file first:

import { frFR } from "gridjs/dist/gridjs.lang.es";
note

"es" in gridjs/dist/gridjs.lang.es refers to the file format (ECMAScript). All language files are combined into one file. There is a UMD format for web-browsers as well: gridjs/dist/gridjs.lang

Then pass it to the language setting of your Grid.js:

Live Editor
Result
tip

You can find a list of supported languages here https://github.com/grid-js/gridjs/tree/master/packages/gridjs/src/i18n

Also, you can easily customize Grid.js messages and add your language. Simply extend the language config to replace the strings:

Live Editor
Result

tip

See en_US for a full list of messages.

Last updated on by Afshin Mehrabani