|
[app.component.html]
<ejs-grid #grid [dataSource]='data' allowPaging='true' [allowResizing]="true" [toolbar]='toolbar'
[editSettings]="editSettings" [locale]='en-US'>
<e-columns>
. . . .
</e-columns>
</ejs-grid>
[app.component.ts]
loadCldr(cagregorian, currencies, numbers, timeZoneNames); // load json files
const localede = {
"en-US": {
grid: {
EmptyRecord: "Keine Aufzeichnungen angezeigt",
GroupDropArea:
"Ziehen Sie einen Spaltenkopf hier, um die Gruppe ihre Spalte",
UnGroup: "Klicken Sie hier, um die Gruppierung aufheben",
EmptyDataSourceError:
"DataSource darf bei der Erstauslastung nicht leer sein, da Spalten aus der dataSource im AutoGenerate Spaltenraster",
Item: "Artikel",
Items: "Artikel",
ConfirmDelete:
"Do You Want To Remove The Merchandise Hierarchy Record(s)?",
CancelEdit:
"You Have Made Changes. If You Continue, Your Changes Will Be Discarded. Do You Want To Cancel Your Changes?",
OKButton: "Yes",
CancelButton: "No"
}
}
};
setCulture("en-US"); // Change the Grid culture
setCurrencyCode("EUR"); // Change the currency code
L10n.load(localede); |
Hello, i try the exact same example, but that does not work. I cannot succeed to have the translation.
I have angular 12.1.4, webpack
5.41.0
syncfusion 19.2.49
i added those two lines in my tsconfig
"resolveJsonModule": true,
"esModuleInterop": true,
To be honest, I tried every single way that I could think and nothing seem to work.. what do you need to be able to help me?