I am trying to use Syncfusion EJ2's internationalization features in Angular-Cli using WebPack, which is problematic because all the documentation uses SystemJs.
In particular, I am trying to use this sample http://plnkr.co/edit/4uA2rb0Q2FrLLK6V4sne
import { L10n, loadCldr, setCulture, setCurrencyCode } from '@syncfusion/ej2-base'; import * as currencies from './currencies.json'; import * as cagregorian from './ca-gregorian.json'; import * as numbers from './numbers.json'; import * as timeZoneNames from './timeZoneNames.json'; import * as numberingSystems from './numberingSystems.json'; import { Component, OnInit } from '@angular/core'; import { data } from './datasource'; loadCldr(currencies, cagregorian, numbers, timeZoneNames, numberingSystems); setCulture('de-DE'); setCurrencyCode('EUR');
I tried, but could not get it to work, I was stuck with this error: Cannot find the module. /numberingSystems.json '
What changes should be made to the sample?
source share