Skip to content

Commit f1763ae

Browse files
committed
fix(i18n): add local fallback for i18next + backend and configure CDN fallback in loader.js
1 parent cf67439 commit f1763ae

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

js/loader.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ requirejs.config({
2828
samples: "../sounds/samples",
2929
planet: "../js/planet",
3030
tonejsMidi: "../node_modules/@tonejs/midi/dist/Midi",
31-
i18next: "https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/i18next.min",
32-
i18nextHttpBackend: "https://cdn.jsdelivr.net/npm/[email protected]/i18nextHttpBackend.min"
31+
i18next: [
32+
"../lib/i18next.min",
33+
"https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/i18next.min"
34+
],
35+
i18nextHttpBackend: [
36+
"../lib/i18nextHttpBackend.min",
37+
"https://cdn.jsdelivr.net/npm/[email protected]/i18nextHttpBackend.min"
38+
]
3339
},
3440
packages: []
3541
});

lib/i18next.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/i18nextHttpBackend.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)