Resolve "Finish handling of internationalization in vuejs: handling translation of "translatable string""

This commit is contained in:
2025-05-28 14:40:26 +00:00
committed by Julien Fastré
parent dc44c46667
commit 649ad26721
22 changed files with 118 additions and 464 deletions

View File

@@ -41,7 +41,7 @@
>
<option value="" selected disabled>Zoom</option>
<option v-for="z in zoomLevels" :value="z.zoom" :key="z.id">
{{ z.label.fr }}
{{ localizeString(z.label) }}
</option>
</select>
<template v-if="pageCount > 1">
@@ -173,7 +173,7 @@
>
<option value="" selected disabled>Zoom</option>
<option v-for="z in zoomLevels" :value="z.zoom" :key="z.id">
{{ z.label.fr }}
{{ localizeString(z.label) }}
</option>
</select>
<template v-if="pageCount > 1">
@@ -395,6 +395,7 @@ import {
SIGNATURES_GO_TO_SIGNATURE_UNIQUE,
trans,
} from "translator";
import { localizeString } from "ChillMainAssets/lib/localizationHelper/localizationHelper";
// @ts-ignore incredible but the console.log is needed
import * as PdfWorker from "pdfjs-dist/build/pdf.worker.mjs";