Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beginor/dx-locale-zh-cn
Chinese localization messages for DevExpress/DevExtreme
https://github.com/beginor/dx-locale-zh-cn
Last synced: 8 days ago
JSON representation
Chinese localization messages for DevExpress/DevExtreme
- Host: GitHub
- URL: https://github.com/beginor/dx-locale-zh-cn
- Owner: beginor
- Created: 2017-12-28T01:57:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T07:37:15.000Z (almost 7 years ago)
- Last Synced: 2024-10-05T01:03:31.130Z (about 1 month ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dx-locale-zh-cn
Chinese localization messages for DevExpress/DevExtreme
## Usage
1. Install it with npm:
`npm install devextreme-intl dx-locale-zh-cn`
2. Add some code to the root component of your app, usually it is `AppComment`, like this:
```ts
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);
}
}
```3. Ok, it's done!