Skip to main content

Locales

Grid.js has support for various different languages:

  • en_US
  • es_ES
  • fr_FR
  • it_IT
  • tr_TR

Installing a Locale#

Import your language file first:

import { frFR } from "gridjs/l10n";
note

All locales are combined into one file. There is a UMD format for web-browsers as well: e.g. gridjs/l10n/dist/l10n.umd.js: https://unpkg.com/gridjs/l10n/dist/l10n.umd.js

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

Live Editor
Result

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

Live Editor
Result

Creating a Locale#

Copy the en_US file, update the values and send a PR!

Last updated on by Afshin Mehrabani