mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Cleanup and fix an i18n bug
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user