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
StringCancel separator sign.
columns
StringColumns text.
decimalSeparator
StringDecimal separator sign.
date
ObjectDate words, formats and options.
dragText
StringDrag text.
loadingText
StringLoading text.
lock
StringLock text.
no
StringNo text.
paging
ObjectPaging words.
rightLock
StringRight lock text.
sortASC
StringSort ascending text.
sortDesc
StringSort descending text.
sourceText
StringSource text.
thousandSeparator
StringThousand separator sign.
unlock
StringUnlock text.
update
StringUpdate text.
yes
StringYes text.