A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/localization/ below:

JavaScript Form - Localization | DHTMLX Suite 9 Docs

Localization

You can apply different languages to the interface of DHTMLX Form, specifically to its SimpleVault control. You just need to translate the corresponding strings for Form labels and apply a ready locale to the component.

Default locale​

The default (English) locale for Form SimpleVault control looks like this:

const en = {
simpleVaultText: "Drag & drop files or folders here or",
simpleVaultLabel: "browse files"
};
Custom locale​

To use a different locale, your need to:

const de = {
simpleVaultText: "Drag & Drop Dateien oder Ordner hier oder",
simpleVaultLabel: "Suchen Sie Dateien durch"
};
dhx.i18n.setLocale("form", de);
const form = new dhx.Form("form_container");

Related sample: Form. Localization

dhx.i18n.setLocale("form", de);
dhx.i18n.setLocale("colorpicker", de);
const form = new dhx.Form("form_container");

tip

The localization of the ColorPicker, DatePicker, Combo controls is the same as the localization of the widgets: ColorPicker, Calendar and Combo.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4