Point the *development mode* fallback locale-path to the l10n
-folder (issue 17609, PR 17603 follow-up)
This commit is contained in:
parent
cbbd1fcaa3
commit
da8297115f
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user