mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 05:27:20 +00:00
Fix timeago import and warning.
This commit is contained in:
parent
983fdac95d
commit
9b1f7086f4
@ -59,9 +59,9 @@ export default {
|
||||
(async function () {
|
||||
const locale = App.getPreferenceString("hl", App.defaultLangage);
|
||||
if (locale !== App.TimeAgoConfig.locale) {
|
||||
const localeTime = await import("javascript-time-ago/locale/" + locale + ".json").then(
|
||||
module => module.default,
|
||||
);
|
||||
const localeTime = await import(
|
||||
"./../node_modules/javascript-time-ago/locale/" + locale + ".json"
|
||||
).then(module => module.default);
|
||||
App.TimeAgo.addLocale(localeTime);
|
||||
App.TimeAgoConfig.locale = locale;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<h1 v-t="$t('titles.trending')" class="font-bold text-center" />
|
||||
<h1 v-t="'titles.trending'" class="font-bold text-center" />
|
||||
|
||||
<hr />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user