Localization

To do localization it is used 2 core properties.
They are: i18n and lang.
i18n sets language words and formatting options.
lang overwrite language options.
i18n does not affect on contextmenu items. You can set your own text item values, sample in doc link contextmenu.

List of supported languages

Czech, Danish, Dutch, German, English, English Australia, English UK, Finnish, French,
French Canada, Indonesian, Italian, Japanese, Korean, Norwegian Bokmal, Norwegian Nynorsk, Polish, Portuguese Brazil, Portuguese Portugal, Russian, Turkish, Simplified Chinese, Spanish,
Swedish, Traditional Chinese.

List of codes

Example: Customizing lang


var grid = new FancyGrid({
  title: 'Localization - German',
  i18n: 'de',
  lang: {
    loadingText: 'Lade Daten ...',
    thousandSeparator: '.',
    sourceText: 'Quelle',
    paging: {
      of: 'von [0]',
      info: 'Zeilen [0] - [1] von [2]',
      page: 'Seite'
    }
  }
  ...
});

Params

cancel

String

Cancel separator sign.

columns

String

Columns text.

decimalSeparator

String

Decimal separator sign.

date

Object

Date words, formats and options.

dragText

String

Drag text.

loadingText

String

Loading text.

lock

String

Lock text.

no

String

No text.

paging

Object

Paging words.

rightLock

String

Right lock text.

sortASC

String

Sort ascending text.

sortDesc

String

Sort descending text.

sourceText

String

Source text.

thousandSeparator

String

Thousand separator sign.

unlock

String

Unlock text.

update

String

Update text.

yes

String

Yes text.

`