packaging working, need to fix json import assertion
This commit is contained in:
@@ -2,10 +2,10 @@ import i18next from "i18next";
|
||||
import resourcesToBackend from "i18next-resources-to-backend";
|
||||
|
||||
i18next
|
||||
.use(resourcesToBackend((language, namespace) => import(`./${namespace}/${language}.json`)))
|
||||
.use(resourcesToBackend((language, namespace) => import(`./locales/${namespace}/${language}.json`)))
|
||||
.init({
|
||||
// debug: true,
|
||||
ns: ["common"], // Preload this namespace, no need to add the others
|
||||
ns: ["common"], // Preload this namespace, no need to add the others, they will load once their module is loaded
|
||||
defaultNS: "common",
|
||||
fallbackLng: "en",
|
||||
interpolation: {
|
||||
@@ -1,7 +1,8 @@
|
||||
import { WasmFs } from '@wasmer/wasmfs';
|
||||
import path from "path";
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
let nodeWasmLocation = "../shared-operations/src/wasm/pdfcpu/"; // TODO: Replace with __dirname
|
||||
let nodeWasmLocation = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
let fs;
|
||||
const wasmfs = new WasmFs();
|
||||
|
||||
Reference in New Issue
Block a user