Point the *development mode* fallback locale-path to the l10n-folder (issue 17609, PR 17603 follow-up)

This commit is contained in:
Jonas Jenwald 2024-02-01 13:03:36 +01:00
parent cbbd1fcaa3
commit da8297115f

View File

@ -113,7 +113,7 @@ class GenericL10n extends L10n {
const text = const text =
typeof PDFJSDev === "undefined" typeof PDFJSDev === "undefined"
? await fetchData( ? await fetchData(
new URL(`./locale/${lang}/viewer.ftl`, window.location.href), new URL("../l10n/en-US/viewer.ftl", window.location.href),
/* type = */ "text" /* type = */ "text"
) )
: PDFJSDev.eval("DEFAULT_FTL"); : PDFJSDev.eval("DEFAULT_FTL");