imports/vx/both/code/util.js
/**
     * Make an array of time options appropriate for a given time unit.
     *
     * @param {string} timeUnit Time unit.
     * @return {array} Array of time options.
     */
Make an array of time options appropriate for a given time unit.
@param {string} timeUnit Time unit.
@return {array} Array of time options.
Make an array of time options appropriate for a given time unit . @param { string } timeUnit Time unit . @return { array } Array of time options .
makeTimeOptionsArray(timeUnit) {
        timeUnit = timeUnit || "HOUR"
        let timeOptions = Meteor.i18nMessages.codes.timeUnit[timeUnit].timeOptions
        return timeOptions.map(timeOption => {
            let propertyLocalized = Util.i18n("codes.timeOption." + timeOption)
            return { code: timeOption, localized: propertyLocalized }
        })
    }
makeTimeOptionsArray ( timeUnit ) { timeUnit = timeUnit || "HOUR" let timeOptions = Meteor . i18nMessages . codes . timeUnit [ timeUnit ] . timeOptions return timeOptions . map ( timeOption => { let propertyLocalized = Util . i18n ( "codes.timeOption." + timeOption ) return { code : timeOption , localized : propertyLocalized } } ) }
Make an array of time options appropriate for a given time unit.
Make an array of time options appropriate for a given time unit .