diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js index 2600750..8845b45 100644 --- a/src/plugins/i18n.js +++ b/src/plugins/i18n.js @@ -97,7 +97,7 @@ async function loadFormatting (locale) { const tal = TIME_AGO_EXCEPTIONS[locale] || locale const data = await import(/* webpackChunkName: "timeago-[request]" */ `javascript-time-ago/locale/${tal}.json`) TimeAgo.addLocale(data) - const timeAgo = new TimeAgo(locale) + const timeAgo = new TimeAgo(tal) store.commit('i18n/updateState', { intlLocale: locale, diff --git a/src/store/i18n-store.js b/src/store/i18n-store.js index fe1c04d..2367ed6 100644 --- a/src/store/i18n-store.js +++ b/src/store/i18n-store.js @@ -8,7 +8,7 @@ export const i18nStore = { }), mutations: { - updateState (state, { intlLocale, NF, timeAgo }) { + updateState (state, { intlLocale, timeAgo }) { state.fullFormatter = new Intl.DateTimeFormat(window.localStorage.getItem('DTF_OVERRIDE') || intlLocale, { dateStyle: 'full', timeStyle: 'full'