From fad564ed43c406a73c768e4ba18ad3b54bb604c0 Mon Sep 17 00:00:00 2001 From: Florian Heft Date: Sat, 9 Apr 2022 09:45:52 +0200 Subject: [PATCH] Remove i18n in viewer mode * Reduce bundle size by 50% because we don't need node-polyglot anymore. --- src/js/viewer/viewer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/viewer/viewer.js b/src/js/viewer/viewer.js index 212da64..ad2f2d5 100644 --- a/src/js/viewer/viewer.js +++ b/src/js/viewer/viewer.js @@ -1,11 +1,9 @@ import { h } from "flyps-dom-snabbdom"; - import { viewport } from "../viewport"; -import i18n from "../i18n"; import { chevronLeft, chevronRight } from "../icons"; import { trigger } from "flyps"; -const notFound = () => h("div", i18n("editor.unwritten-tale")); +const notFound = () => h("div", "An unwritten taleā€¦"); export const viewer = (tale, imgData, activeSlide) => { if (!tale) {