0

when use DevExtreme DataGrid,click the delete button,it shows a message,i want to reset the message language to another one - like Japanese or Russian.

my project is Angular8,at the top of app.module.ts,before @NgModule, i set the language like this:

import xxxxxxxxx;

import {locale} from 'devextreme/localization';
locale(navigator.language);

@NgModule({
  declarations: [
    AppComponent,
    xxxxxxx

i use Chrome,the browser's language is set to Chinese, but when i click delete button, the message is remain English

4

1 回答 1

0

您需要调用 loadMessages 以使本地化应用于小部件。有一个在线演示展示了这种方法的实际应用。

于 2019-06-20T11:27:41.363 回答