Prvi commit
This commit is contained in:
48
EveryThing/wwwroot/vendor/libs/cldrjs/dist/.build/supplemental/main.js
vendored
Normal file
48
EveryThing/wwwroot/vendor/libs/cldrjs/dist/.build/supplemental/main.js
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
var supplementalMain = function( cldr ) {
|
||||
|
||||
var prepend, supplemental;
|
||||
|
||||
prepend = function( prepend ) {
|
||||
return function( path ) {
|
||||
path = alwaysArray( path );
|
||||
return cldr.get( [ prepend ].concat( path ) );
|
||||
};
|
||||
};
|
||||
|
||||
supplemental = prepend( "supplemental" );
|
||||
|
||||
// Week Data
|
||||
// http://www.unicode.org/reports/tr35/tr35-dates.html#Week_Data
|
||||
supplemental.weekData = prepend( "supplemental/weekData" );
|
||||
|
||||
supplemental.weekData.firstDay = function() {
|
||||
return cldr.get( "supplemental/weekData/firstDay/{territory}" ) ||
|
||||
cldr.get( "supplemental/weekData/firstDay/001" );
|
||||
};
|
||||
|
||||
supplemental.weekData.minDays = function() {
|
||||
var minDays = cldr.get( "supplemental/weekData/minDays/{territory}" ) ||
|
||||
cldr.get( "supplemental/weekData/minDays/001" );
|
||||
return parseInt( minDays, 10 );
|
||||
};
|
||||
|
||||
// Time Data
|
||||
// http://www.unicode.org/reports/tr35/tr35-dates.html#Time_Data
|
||||
supplemental.timeData = prepend( "supplemental/timeData" );
|
||||
|
||||
supplemental.timeData.allowed = function() {
|
||||
return cldr.get( "supplemental/timeData/{territory}/_allowed" ) ||
|
||||
cldr.get( "supplemental/timeData/001/_allowed" );
|
||||
};
|
||||
|
||||
supplemental.timeData.preferred = function() {
|
||||
return cldr.get( "supplemental/timeData/{territory}/_preferred" ) ||
|
||||
cldr.get( "supplemental/timeData/001/_preferred" );
|
||||
};
|
||||
|
||||
return supplemental;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user