Merge pull request #17610 from Snuffleupagus/createBundleFallback-dev-path

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 14:22:19 +01:00 committed by GitHub
commit af4d2fa53c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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