Skip to content

Commit 299921f

Browse files
committed
[update] combobox localization guide
1 parent 502e7b8 commit 299921f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/combobox/localization.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ description: You can explore the localization of Combo Box in the documentation
88

99
You can apply different languages to the interface of DHTMLX Combo. You just need to translate the corresponding strings for Combobox labels and apply a ready locale to the component.
1010

11+
**Related sample**: [Combobox. Localization](https://snippet.dhtmlx.com/cnj0j9g0?tag=combobox)
12+
1113
## Default locale
1214

1315
The default locale for Combobox looks like this:
@@ -17,8 +19,9 @@ const en = {
1719
notFound: "Not found",
1820
selectAll: "Select all",
1921
unselectAll: "Unselect all",
20-
selectedItems: "selected items",
21-
createItem: "Create"
22+
selectedItems: "Selected items",
23+
createItem: "Create",
24+
placeholder: "Click to select"
2225
};
2326
~~~
2427

@@ -34,7 +37,8 @@ const de = {
3437
selectAll: "Alle auswählen",
3538
unselectAll: "Deaktivieren Sie Alle",
3639
selectedItems: "Ausgewählte Elemente",
37-
createItem: "Schaffen"
40+
createItem: "Schaffen",
41+
placeholder: "Klicken um auszuwählen"
3842
};
3943
~~~
4044

@@ -45,4 +49,4 @@ dhx.i18n.setLocale("combo_container", de);
4549
const combo = new dhx.Combobox("combo_container");
4650
~~~
4751

48-
**Related sample**: [Combobox. Localization](https://snippet.dhtmlx.com/cnj0j9g0)
52+

0 commit comments

Comments
 (0)