code: function (context, type, value, options) {
      var FORMATTER;
  
      switch (type) {
        case 'number':
          FORMATTER = {
            constructor: Intl.NumberFormat,
            cachedInstance: context.$i18n.NUMBER_FORMATTER
          };
          break
        case 'currency':
          FORMATTER = {
            constructor: Intl.CurrencyFormat,
            cachedInstance: context.$i18n.CURRENCY_FORMATTER
          };
          break
        case 'date':
          FORMATTER = {
            constructor: Intl.DateTimeFormat,
            cachedInstance: context.$i18n.DATE_TIME_FORMATTER
          };
          break
      }
  
      if (FORMATTER && value !== undefined && value !== null && value !== false) {
        if (typeof options === 'object') {
          options = Object.assign(context.$i18n[(type + "Format")], options);
        } else {
          options = undefined;
        }
  
        return options ? new FORMATTER.constructor(context.$i18n.activeLocale, options).format(value) : FORMATTER.cachedInstance.format(value)
      } else {
        return value
      }
    }
docs: Expose date and number formatting methods.