Skip to content

Commit

Permalink
feat(locales): add swedish language
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Oct 19, 2024
1 parent da6de97 commit 8b81285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/browser/utils.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
};
3 changes: 2 additions & 1 deletion src/node/utils.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 8b81285

Please sign in to comment.