mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
Fix missing i18n module in IO review screen (#3223)
This commit is contained in:
parent
e0a3768bf3
commit
548066f92c
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import * as tr from "@generated/ftl";
|
import * as tr from "@generated/ftl";
|
||||||
|
|
||||||
|
import { ModuleName, setupI18n } from "@tslib/i18n";
|
||||||
import { optimumPixelSizeForCanvas } from "./canvas-scale";
|
import { optimumPixelSizeForCanvas } from "./canvas-scale";
|
||||||
import { Shape } from "./shapes";
|
import { Shape } from "./shapes";
|
||||||
import { Ellipse, extractShapesFromRenderedClozes, Polygon, Rectangle, Text } from "./shapes";
|
import { Ellipse, extractShapesFromRenderedClozes, Polygon, Rectangle, Text } from "./shapes";
|
||||||
|
|
@ -43,6 +44,11 @@ interface SetupImageOcclusionOptions {
|
||||||
|
|
||||||
async function setupImageOcclusion(setupOptions?: SetupImageOcclusionOptions): Promise<void> {
|
async function setupImageOcclusion(setupOptions?: SetupImageOcclusionOptions): Promise<void> {
|
||||||
await waitForImage();
|
await waitForImage();
|
||||||
|
await setupI18n({
|
||||||
|
modules: [
|
||||||
|
ModuleName.NOTETYPES,
|
||||||
|
],
|
||||||
|
});
|
||||||
window.addEventListener("load", () => {
|
window.addEventListener("load", () => {
|
||||||
window.addEventListener("resize", () => setupImageOcclusion(setupOptions));
|
window.addEventListener("resize", () => setupImageOcclusion(setupOptions));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue