declare var require: any
import { Component, OnInit } from '@angular/core';
import { loadCldr, setCulture, setCurrencyCode, L10n } from '@syncfusion/ej2-base';
L10n.load({
'fr-BE': {
'grid': {
'EmptyRecord': 'Aucun enregistrement.',
...
},
'pager': {
'currentPageInfo': '{0} de {1} Page(s)',
...
}
}
});
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'Front';
public sidebar: SidebarComponent;
ngOnInit() {
setCulture('fr-BE');
setCurrencyCode('EUR');
loadCldr(require('cldr-data/main/fr-BE/currencies.json'),
require('cldr-data/main/fr-BE/numbers.json'),
require('cldr-data/main/fr-BE/ca-gregorian.json'),
require('cldr-data/main/fr-BE/timeZoneNames.json'),
require('cldr-data/supplemental/numberingSystems.json')); //loading culture format files
}
}
|