Html 如何设置syncfusion组件pt BR
我很难理解如何定义角度合成组件的国际化和全球化 在葡萄牙语的stackoverflow中,没有人能帮助我做一些我认为很简单的事情,所以我在这里问这个问题 目前,我正在使用的组成部分,它都在英语,我希望它在葡萄牙语所有 我唯一需要做的就是了解我实际做了什么来实现这一点,因为我查看了文档,但无法确定需要更改哪些文件以进行设置 它要求配置文件Html 如何设置syncfusion组件pt BR,html,angular,typescript,syncfusion,Html,Angular,Typescript,Syncfusion,我很难理解如何定义角度合成组件的国际化和全球化 在葡萄牙语的stackoverflow中,没有人能帮助我做一些我认为很简单的事情,所以我在这里问这个问题 目前,我正在使用的组成部分,它都在英语,我希望它在葡萄牙语所有 我唯一需要做的就是了解我实际做了什么来实现这一点,因为我查看了文档,但无法确定需要更改哪些文件以进行设置 它要求配置文件system.config.js,但我的项目中不存在此文件 在所有组件和时间格式上,将区域设置从en-US设置为pt-BR template.html: &l
system.config.js
,但我的项目中不存在此文件
en-US
设置为pt-BR
<!-- Setting the locale to the value 'pt-BR' is not enough. -->
<ejs-schedule #scheduleObj width='100%' height='500px' locale="pt-BR" [currentView]="currentView" [selectedDate]="selectedDate"
[group]="group" [eventSettings]="eventSettings" (actionComplete)="onActionComplete($event)">
<e-resources>
<e-resource field='salaId' title='Selecione a sala' [dataSource]='salasAtendimento'
[allowMultiple]='allowMultiple' name='Salas' textField='nome' idField='id' colorField='color'>
</e-resource>
<e-resource field='profissionalId' title='Profissionais' [dataSource]='profissionais'
[allowMultiple]='allowMultiple' name='Profissionais' textField='nome' idField='id' groupIDField='salaId'
colorField='color'>
</e-resource>
</e-resources>
<e-views>
<e-view option="TimelineDay"></e-view>
<e-view option="TimelineWeek"></e-view>
<e-view option="Agenda"></e-view>
</e-views>
</ejs-schedule>
装入包装
npm i cldr数据
并在tsconfig.json中添加
“编译器选项”:{
“resolveJsonModule”:true}
工作对我来说很好
从'@angular/core'导入{Component,OnInit};
从'@syncfusion/ej2 schedule'导入{EventSettingsModel,GroupModel,};
从“app/entities/contrato/data”导入{resourceData,timelineResourceData};
从'@syncfusion/ej2base'导入{extend,loadCldr,L10n};
从“cldr data/supplemental/numberingSystems.json”导入*作为numberingSystems;
从“cldr data/main/pt/ca gregorian.json”导入*作为gregorian;
从“cldr data/main/pt/numbers.json”以数字形式导入*;
从“cldr data/main/pt/timeZoneNames.json”导入*作为时区名称;
loadCldr(numberingSystems['default']、gregorian['default']、numbers['default']、timeZoneNames['default']);
L10n.负载({
“pt”:{
‘附表’:{
“day”:“dia”,
“周”:“塞马纳”,
“工作周”:Semana de trabalho,
“月”:“月”,
"议程":"议程",,
“weekAgenda”:“semana议程”,
“工作日议程”:“工作日议程”,
“蒙塔根达”:“议事日程”,
‘今天’:‘Hoje’,
“无事件”:“Sem事件”,
“全天”:“待办事项”,
‘开始’:‘Início’,
“结束”:“职能指令手册”,
“更多”:“Mais”,
“关闭”:“Fechar”,
'取消':'取消',
‘noTitle’:‘Sem título’,
“删除”:“Apagar”,
'deleteEvent':'Excluir evento',
“selectedItems”:“十个选择”,
“deleteSeries”:“Apagar série”,
“编辑”:“编辑程序”,
“Editar série”,
“editEvent”:“Editar evento”,
“createEvent”:“Criar”,
“主题”:“阿桑托”,
“addTitle”:“Adicionar título”,
‘更多详情’:‘Mais detalles’,
“save”:“Salvar”,
“editContent”:“Deseja editar apenas este event ou toda a série?”,
“deleteRecurrenceContent”:“Deseja eliminar sóeste evento ou toda a série?”,
“deleteContent”:“如果发生了什么事,你会怎么办?”,
“newEvent”:“Novo evento”,
“标题”:“蒂图罗”,
“地点”:Localização,
“描述”:“描述”,
“时区”:“时区”,
“startTimezone”:“Hora inicial”,
“endTimezone”:“Hora final”,
“repeat”:“Repetir”,
“保存按钮”:“Salvar”,
“cancelButton”:“Cancelar”,
“deleteButton”:“Apagar”,
“重现期”:“重现期”,
“Editar recorrência”:“Editar recorrência”,
“重复”:“重复”,
“警报”:“警报”,
“Startenderor”:“一份最终确定的数据。”,
“invalidDateError”:“O valor da dataéinvalida.”,
“确定”:“确认人”,
“事件”:Výskyt,
“系列”:“Série”,
“上一个”:“前一个”,
“下一步”:“普罗西莫”,
“timelineDay”:“Alocaão de Hoje”,
“timelineWeek”:“Alocaço Semanal”,
“timelineWorkWeek”:“Alocaço do trabalho semanal”,
“timelineMonth”:“Alocaço mensal”
},
“recurrenceeditor”:{
“无”:“嫩哼”,
《每日》:迪亚里奥,
“每周”:“语义”,
‘每月’:‘每月’,
“月”:“月”,
“年度”:“年度”,
“从不”:“Nunca”,
'直到':'在',
“count”:“Contar”,
“第一”:Primeiro,
“第二个”:“Segundo”,
“第三个”:“特塞罗”,
“四分之一”:“四分之一”,
“最后一个”:Último,
“repeat”:“Repetir”,
“repeatEvery”:“Repita cada”,
“on”:“Repita en”,
“结束”:“职能指令手册”,
“onDay”:“Dia”,
“天”:“迪亚斯”,
“周”:“塞马纳斯”,
“月”:“月”,
“年”:“年”,
“每个”:“cada”,
“summaryTimes”:“vecês”,
“summaryOn”:“em”,
“summaryUntil”:“até”,
“summaryRepeat”:“Repita”,
“summaryDay”:“dias”,
“summaryWeek”:“semanas”,
“summaryMonth”:“meses”,
“summaryYear”:“anos”,
“monthWeek”:“Měsíčnítýden”,
“monthPosition”:“Pozice měsíce”,
“monthExpander”:“扩展器měsíce”,
“年度扩展器”:“韩国扩展器”,
“repeatInterval”:“Interval opakování”
},
“日历”:{
“今天”:“Hoje”
}
}
});
@组成部分({
选择器:“jhi仪表板”,
templateUrl:“./dashboard.component.html”,
样式URL:['dashboard.scss']
})
导出类DashboardComponent实现OnInit{
公共选择日期:日期=新日期(2018年3月4日);
公共组:GroupModel={
资源:[“项目”、“类别”]
};
公共项目数据源:对象[]=[
{text:'project1',id:1,颜色:'#cb6bb2'},
{文本:“项目2”,id:2,颜色:'#56ca85'},
{文本:“项目3”,id:3,颜色:'#df5286'}
];
公共类别数据源:对象[]=[
{文本:'Nancy',id:1,groupId:1,颜色:'#df5286'},
{文本:'Steven',id:2,groupId:1,颜色:'#7fa900'},
{text:'Robert',id:3,groupId:2,颜色:'#ea7a57'},
{文本:'Smith',id:4,groupId:2,颜色:'#5978ee'},
{text:'Micheal',id:5,groupId:3,颜色:'#df5286'},
{text:'Root',id:6,groupId:3,颜色