|
@ -62,7 +62,7 @@ function main() { |
|
|
content.textContent = timeAgoString({ |
|
|
content.textContent = timeAgoString({ |
|
|
formatMessage: ({ id, defaultMessage }, values) => (new IntlMessageFormat(messages[id] || defaultMessage, locale)).format(values), |
|
|
formatMessage: ({ id, defaultMessage }, values) => (new IntlMessageFormat(messages[id] || defaultMessage, locale)).format(values), |
|
|
formatDate: (date, options) => (new Intl.DateTimeFormat(locale, options)).format(date), |
|
|
formatDate: (date, options) => (new Intl.DateTimeFormat(locale, options)).format(date), |
|
|
}, datetime, now, now.getFullYear()); |
|
|
|
|
|
|
|
|
}, datetime, now, now.getFullYear(), content.getAttribute('datetime').includes('T')); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const reactComponents = document.querySelectorAll('[data-component]'); |
|
|
const reactComponents = document.querySelectorAll('[data-component]'); |
|
|