11/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
2- var ReactWidgetLocalizer =
32/******/ ( function ( modules ) { // webpackBootstrap
43/******/ // The module cache
54/******/ var installedModules = { } ;
@@ -140,7 +139,11 @@ var ReactWidgetLocalizer =
140139 } ,
141140
142141 format : function format ( value , _format2 , culture ) {
143- return value == null ? value : locale ( culture ) . formatNumber ( value , _format2 ) ;
142+ if ( value == null ) return value ;
143+
144+ if ( _format2 && _format2 . currency ) return locale ( culture ) . formatCurrency ( value , _format2 . currency , _format2 ) ;
145+
146+ return locale ( culture ) . formatNumber ( value , _format2 ) ;
144147 } ,
145148
146149 precision : function precision ( format ) {
@@ -165,10 +168,8 @@ var ReactWidgetLocalizer =
165168 function shortDay ( dayOfTheWeek ) {
166169 var culture = getCulture ( arguments [ 1 ] ) ,
167170 name = culture . name ,
168- start = firstOfWeek ( culture ) ,
169171 days = function days ( ) {
170- var days = culture . calendar . days . namesShort . slice ( ) ;
171- return start === 0 ? days : days . concat ( days . splice ( 0 , start ) ) ;
172+ return culture . calendar . days . namesShort . slice ( ) ;
172173 } ;
173174
174175 var names = shortNames [ name ] || ( shortNames [ name ] = days ( ) ) ;
0 commit comments