this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make sure nice-date-time also match the more local locale

+5 -1
+5 -1
src/utils/nice-date-time.js
··· 1 1 import { i18n } from '@lingui/core'; 2 2 3 + import localeMatch from './locale-match'; 3 4 import mem from './mem'; 4 5 5 6 const defaultLocale = new Intl.DateTimeFormat().resolvedOptions().locale; 6 7 7 8 const _DateTimeFormat = (opts) => { 8 9 const { locale, dateYear, hideTime, formatOpts } = opts || {}; 9 - const loc = locale && !/pseudo/i.test(locale) ? locale : defaultLocale; 10 + const loc = 11 + locale && !/pseudo/i.test(locale) 12 + ? localeMatch([locale], [defaultLocale]) 13 + : defaultLocale; 10 14 const currentYear = new Date().getFullYear(); 11 15 const options = { 12 16 // Show year if not current year