@@ -10,17 +10,12 @@ import { loadCldr, L10n } from '@syncfusion/ej2-base';
10
10
export class InternationalizationComponent {
11
11
public date : Object = new Date ( ) ;
12
12
locale : string = 'de' ;
13
- ngOnInit ( ) : void {
13
+ ngOnInit ( ) : void {
14
14
loadCldr (
15
15
require ( '../common/cldr-data/supplemental/numberingSystems.json' ) ,
16
- require ( '../common/cldr-data/main/zh/ca-gregorian.json' ) ,
17
- require ( '../common/cldr-data/main/zh/timeZoneNames.json' ) ,
18
- require ( '../common/cldr-data/main/zh/numbers.json' ) ,
19
- require ( '../common/cldr-data/main/zh/currencies.json' ) ,
20
16
require ( '../common/cldr-data/main/de/ca-gregorian.json' ) ,
21
- require ( '../common/cldr-data/main/de/timeZoneNames.json' ) ,
22
17
require ( '../common/cldr-data/main/de/numbers.json' ) ,
23
- require ( '../common/cldr-data/main/de/currencies .json' )
18
+ require ( '../common/cldr-data/main/de/timeZoneNames .json' )
24
19
) ;
25
20
}
26
21
changeLocale ( ) {
@@ -30,7 +25,7 @@ export class InternationalizationComponent {
30
25
constructor ( @Inject ( 'sourceFiles' ) private sourceFiles : any ) {
31
26
sourceFiles . files = [ 'calendar-style.css' ] ;
32
27
}
33
- onValueChange ( args : any ) :void {
34
- ( < HTMLInputElement > document . getElementById ( 'selected' ) ) . textContent = 'Selected Value: ' + args . value . toLocaleDateString ( ) ;
28
+ onValueChange ( args : any ) : void {
29
+ ( < HTMLInputElement > document . getElementById ( 'selected' ) ) . textContent = 'Selected Value: ' + args . value . toLocaleDateString ( ) ;
35
30
}
36
31
}
0 commit comments