chore(i18n): use fixed import

This commit is contained in:
Isaac
2024-06-21 22:17:54 +01:00
parent ccbe778908
commit 835e708ccd

View File

@@ -1,7 +1,5 @@
import { I18nLite } from '@eartharoid/i18n';
// import { importJSON } from '@eartharoid/vite-plugin-i18n';
const importJSON = (...modules) => ([modules[0].locale_id, [].concat(...modules.map(mod => mod.json))]);
import { importJSON } from '@eartharoid/vite-plugin-i18n/client';
export const languages = Object
.keys(import.meta.glob('i18n/**/main.yml'))