Syncfusion全球化和本地化

时间:2018-10-10 11:49:47

标签: angular typescript syncfusion

我尝试对所有同步融合组件实施同步融合本地化。 参考-同步文档(https://help.syncfusion.com/angular/gettingstarted/integration-of-globalization-and-localization#getting-started-with-localization

app.module.ts

import 'syncfusion-ej-global-all/l10n/ej.localetexts.hr-HR.min.js';

组件

  public locale: any;
  this.locale = "hr-HR";

HTML

<div style="height:65%">
    <ejs-grid id='Grid' #grid
              height="100%"
              [dataSource]='operatorsList'
              [locale]="locale"
              (load)="load($event)" >
              ...
              ..

这是我通过以下命令安装的翻译列表:

npm install syncfusion-ej-global-all --save

enter image description here

启动应用程序时出现错误。出现错误的文件是syncfusion文件。在已安装翻译列表的上图中选择了相同的文件。 enter image description here

我做错了什么?

0 个答案:

没有答案