Skip to content

Commit

Permalink
Remove i18n in viewer mode
Browse files Browse the repository at this point in the history
* Reduce bundle size by 50% because we don't
  need node-polyglot anymore.
  • Loading branch information
fheft committed Apr 9, 2022
1 parent e25c503 commit fad564e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/viewer/viewer.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit fad564e

Please sign in to comment.