mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 00:20:57 -05:00
Use relative imports for dayjs.
This commit is contained in:
parent
2acb3aeb14
commit
89f8ab2694
1 changed files with 1 additions and 3 deletions
|
@ -138,9 +138,7 @@ function Locale({ children, locale }: Props) {
|
|||
async (lang_file) => {
|
||||
const defn = lang_file.default;
|
||||
const target = lang.dayjs ?? lang.i18n;
|
||||
const dayjs_locale = await import(
|
||||
/* @vite-ignore */ `/node_modules/dayjs/esm/locale/${target}.js`
|
||||
);
|
||||
const dayjs_locale = await import(`../../node_modules/dayjs/esm/locale/${target}.js`);
|
||||
|
||||
if (defn.dayjs) {
|
||||
dayjs.updateLocale(target, { calendar: defn.dayjs });
|
||||
|
|
Loading…
Reference in a new issue