Vue List - Localization

Static messages for any DevExtreme UI component are defined in a locale-specific dictionary as key-value pairs. To localize the List UI component, you need to redefine the following keys' values. To load the dictionaries, use the loadMessages(messages) method defined in the DevExpress.localization namespace.

App.vue
  • import { locale, loadMessages } from "devextreme/localization";
  •  
  • loadMessages({
  • // Replace "en" with the target locale of the dictionary
  • "en": {
  • "dxCollectionWidget-noDataText": "No data to display",
  • "dxList-pullingDownText": "Pull down to refresh...",
  • "dxList-pulledDownText": "Release to refresh...",
  • "dxList-refreshingText": "Refreshing...",
  • "dxList-pageLoadingText": "Loading...",
  • "dxList-nextButtonText": "More",
  • "dxList-selectAll": "Select All",
  • "dxListEditDecorator-delete": "Delete",
  • "dxListEditDecorator-more": "More"
  • },
  • "de": {
  • "dxCollectionWidget-noDataText": "Keine Daten verfügbar",
  • // ...
  • }
  • });
  •  
  • // Set the locale
  • locale(navigator.language);
NOTE
DevExtreme ships several predefined dictionaries for most locales. See the Localization topic for more information.

Some messages can be defined by List properties as well as keys. The following table illustrates the properties and keys that define the same messages. Note that the properties always take precedence over keys.

PropertyKeyDescription
noDataTextdxCollectionWidget-noDataTextDisplayed when the List is empty.
pullingDownTextdxList-pullingDownTextDisplayed when the user begins pulling the List down.
pulledDownTextdxList-pulledDownTextDisplayed when the user have pulled the List down.
refreshingTextdxList-refreshingTextDisplayed while data in the List is being refreshed.
pageLoadingTextdxList-pageLoadingTextDisplayed while another page is loading.
nextButtonTextdxList-nextButtonTextDisplayed on the button that loads the next page. Appears only if the pageLoadMode property is "nextButton".
See Also