mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 14:22:19 +02:00
Add extension to import
This commit is contained in:
parent
27a1638243
commit
532e9f7e5e
@ -31,7 +31,7 @@ vi.mock("i18next", async importOriginal => {
|
|||||||
const filename = req.params[0];
|
const filename = req.params[0];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const json = await import(`../public/locales/en/${req.params[0]}`);
|
const json = await import(`../public/locales/en/${req.params[0]}.json`);
|
||||||
console.log("Loaded locale", filename);
|
console.log("Loaded locale", filename);
|
||||||
return HttpResponse.json(json);
|
return HttpResponse.json(json);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user