import moment from 'moment'

const getHumanDate = dateAsText => {
  const dateToConvert = moment(dateAsText)
  const format = dateToConvert.isBefore(moment().startOf('year'))
    ? 'D MMM YYYY'
    : 'D MMM'

  return dateToConvert.format(format)
}

export {getHumanDate}

@@ -22,16 +22,23 @@
 oment'%0A%0A
+export 
 const ge
@@ -108,16 +108,27 @@
 eAsText)
+.lang('ru')
 %0A  const
@@ -264,27 +264,4 @@
 )%0A%7D%0A
-%0Aexport %7BgetHumanDate%7D%0A

switch lang to russian