[英]How can I change date-picker language
I have a date-picker 我有一个约会选择者
<input type="text" ng-readonly="true" class="form-control"
datepicker-popup="yyyy-MM-dd" ng-model="filter.FInicial"
is-open="filter.controlFInicialAbierto"
min-date="minDateIni" max-date="maxDateIni"
datepicker-options="dateOptions"
ng-change="setNewEndDate()"
date-disabled="disabled(date, mode)"
ng-required="true"
close-text="@ReporteAccesosRNECRESX.CerrarCalendar"
clear-text="@ReporteAccesosRNECRESX.LimpiarCalendar"
current-text="@ReporteAccesosRNECRESX.ActualCalendar" />
The months appears in English and I would like using Resources change this, How can I send the name of the months to my date-picker depends on what language I'm currently using 月份以英文显示,我想使用参考资料对此进行更改,如何将月份的名称发送到日期选择器取决于我当前使用的语言
NOTE: the current-text "HOY" works and change the language exactly that I want because I send a resource to my date-picker (current-text="@ReporteAccesosRNECRESX.ActualCalendar"), I would like to do same with the months. 注意:当前文本“ HOY”可以正常工作并更改我想要的语言,因为我向日期选择器发送了资源(current-text =“ @ ReporteAccesosRNECRESX.ActualCalendar”),我想对月份进行相同的操作。 I'm using angularjs .net framework 4.5
我正在使用angularjs .net framework 4.5
Add a localized js file (matching version of your angular js) in the header of your page After angular.js An example would be : 在angular.js之后的页面页眉中添加本地化的js文件(与angular js的匹配版本),示例如下:
<script src="angular.js"></script>
<script src="angular-locale_es-es.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.