diff --git a/src/browser/utils.browser.ts b/src/browser/utils.browser.ts index 88898302..281423d8 100644 --- a/src/browser/utils.browser.ts +++ b/src/browser/utils.browser.ts @@ -24,6 +24,7 @@ import TW from '../locales/tw-TW/text.json'; import U from '../locales/ru-RU/text.json'; import VZ from '../locales/mg-VZ/text.json'; import X from '../locales/de-DE/text.json'; +import Z from '../locales/sv-SE/text.json'; declare global { interface Window { @@ -32,6 +33,6 @@ declare global { } window.jw_epub_parser = { - languages: { CH, CHS, E, F, FI, I, J, K, KO, M, MG, P, S, T, TG, TK, TND, TNK, TPO, TTM, TW, U, VZ, X }, + languages: { CH, CHS, E, F, FI, I, J, K, KO, M, MG, P, S, T, TG, TK, TND, TNK, TPO, TTM, TW, U, VZ, X, Z }, path: path, }; diff --git a/src/node/utils.node.ts b/src/node/utils.node.ts index 07d905c4..885dbe8c 100644 --- a/src/node/utils.node.ts +++ b/src/node/utils.node.ts @@ -25,13 +25,14 @@ import TW from '../locales/tw-TW/text.json' assert { type: 'json' }; import U from '../locales/ru-RU/text.json' assert { type: 'json' }; import VZ from '../locales/mg-VZ/text.json' assert { type: 'json' }; import X from '../locales/de-DE/text.json' assert { type: 'json' }; +import Z from '../locales/sv-SE/text.json' assert { type: 'json' }; declare global { var jw_epub_parser: any; } global.jw_epub_parser = { - languages: { CH, CHS, E, F, FI, I, J, K, KO, M, MG, P, S, T, TG, TK, TND, TNK, TPO, TTM, TW, U, VZ, X }, + languages: { CH, CHS, E, F, FI, I, J, K, KO, M, MG, P, S, T, TG, TK, TND, TNK, TPO, TTM, TW, U, VZ, X, Z }, path: path, readFile: readFile, };