|
Given code example
|
|
Expected
|
|
import { Component, OnInit, ViewChild } from '@angular/core';
import { L10n, loadCldr, setCulture, setCurrencyCode } from '@syncfusion/ej2-base';
import { Orderdata } from './data';
import { GridComponent } from '@syncfusion/ej2-angular-grids';
import * as cagregorian from "./ca-gregorian.json";
import * as currencies from "./currencies.json";
import * as numbers from "./numbers.json";
import * as timeZoneNames from "./timeZoneNames.json";
loadCldr(cagregorian, currencies, numbers, timeZoneNames); // load json files throught loadCldr method
const localede = {
'fr': {
"grid": {
"EmptyRecord": "Aucun enregistrement à afficher",
. . .
}
}
@Component({
selector: 'control-content',
templateUrl: 'default.html'
})
export class DefaultComponent implements OnInit {
. . .
buttonClick(args) {
L10n.load(localede); // load corresponding culture text
setCulture('fr'); // Change the Grid culture
setCurrencyCode('EUR');// Change the currency code
}
} |
"@syncfusion/ej2-angular-grids": "^18.2.56",Thank you.
"@syncfusion/ej2-angular-navigations": "^18.2.55",