META-INF.resources.bower_components.globalize.src.relative-time.formatter-fn.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-globalize Show documentation
Show all versions of jwebmp-globalize Show documentation
The JWebSwing implementation for a full Globalization
define([
"../common/validate/parameter-presence",
"../common/validate/parameter-type/number",
"./format"
], function (validateParameterPresence, validateParameterTypeNumber, relativeTimeFormat) {
return function (numberFormatter, pluralGenerator, properties) {
return function relativeTimeFormatter(value) {
validateParameterPresence(value, "value");
validateParameterTypeNumber(value, "value");
return relativeTimeFormat(value, numberFormatter, pluralGenerator, properties);
};
};
});