src/app/legacy/psammead/psammead-locales/moment/sr.js

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%
const moment = require('moment');
require('moment/locale/sr');

moment.updateLocale('sr', {
  longDateFormat: {
    LL: 'D MMMM YYYY',
    LLL: 'D MMMM YYYY H:mm',
    LLLL: 'dddd, D MMMM YYYY H:mm',
  },
  relativeTime: {
    past: 'Pre %s',
    m: '1 minuta',
    mm: '%d minuta',
    h: '1 sata',
    hh(number) {
      return number < 5 ? `${number} sata` : `${number} sati`;
    },
  },
});