dx-locale-zh-cn
v1.0.2
Published
Chinese localization messages for DevExpress/DevExtreme
Downloads
5
Maintainers
Readme
dx-locale-zh-cn
Chinese localization messages for DevExpress/DevExtreme
Usage
Install it with npm:
npm install devextreme-intl dx-locale-zh-cn
Add some code to the root component of your app, usually it is
AppComment
, like this:import { Component, OnInit } from '@angular/core'; import { loadMessages, locale } from 'devextreme/localization'; import { localeMessages, localeName } from 'dx-locale-zh-cn'; @Component({ moduleId: module.id, selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { public ngOnInit(): void { loadMessages(localeMessages); locale(localeName); } }
Ok, it's done!