@omnicar/sam-format
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -22,1 +22,6 @@ import { IsoLocale } from '@omnicar/sam-types'; | ||
export declare function formatLocalizedDate(date: Date, rawFormat: string, isoLocale: IsoLocale): string; | ||
/** | ||
* Get the date format for a country. | ||
* It returns the string in capital letters because some things like for example react-date-picker needs that. | ||
*/ | ||
export declare function getDateFormatInCapitalLetters(): string; |
@@ -91,2 +91,11 @@ "use strict"; | ||
/** | ||
* Get the date format for a country. | ||
* It returns the string in capital letters because some things like for example react-date-picker needs that. | ||
*/ | ||
function getDateFormatInCapitalLetters() { | ||
var dateConfig = init_2.currentLocale.date; | ||
return dateConfig.format.toUpperCase(); | ||
} | ||
exports.getDateFormatInCapitalLetters = getDateFormatInCapitalLetters; | ||
/** | ||
* Get formatted date from underlying implementation | ||
@@ -93,0 +102,0 @@ * @param number |
@@ -1,2 +0,2 @@ | ||
export { formatDate, formatLocalizedDate } from './formatDate/formatDate'; | ||
export { formatDate, formatLocalizedDate, getDateFormatInCapitalLetters, } from './formatDate/formatDate'; | ||
export { formatMileage } from './formattedNumber/formatters/formatMileage'; | ||
@@ -3,0 +3,0 @@ export { formatCurrency } from './formattedNumber/formatters/formatCurrency'; |
@@ -6,2 +6,3 @@ "use strict"; | ||
exports.formatLocalizedDate = formatDate_1.formatLocalizedDate; | ||
exports.getDateFormatInCapitalLetters = formatDate_1.getDateFormatInCapitalLetters; | ||
var formatMileage_1 = require("./formattedNumber/formatters/formatMileage"); | ||
@@ -8,0 +9,0 @@ exports.formatMileage = formatMileage_1.formatMileage; |
@@ -50,3 +50,3 @@ { | ||
}, | ||
"version": "0.0.37" | ||
"version": "0.0.38" | ||
} |
@@ -24,3 +24,3 @@ # SAM-format | ||
There are 3 formatters: | ||
There are 4 formatters: | ||
@@ -27,0 +27,0 @@ ### formatMileage(value, [opts]) |
26151
687